body, html {
    height: 100%;
    background-repeat: no-repeat;
    background-color: rgb(158, 118, 180);
    font-family: Montserrat;
    font-weight: 300;
    font-size: 14px;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    background: url(../images/background2.png);
    background-size: cover;
    background-position: center center;
}

.card-header {
    max-height: 750px;
    margin-bottom: 16px;
    padding: 24px;
    border-radius: 10px !important;
}

.card-header .btn {
   /* background: linear-gradient(270deg, #7C479C 0%, #54107D 100.78%);*/
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    border: none;
    height: 48px;
   
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
}
.card-body {
    padding: 10px 24px;
    border-radius: 10px !important;
}
.line {
    height: 1px;
    background-color: #000000;
    width: 100%;
    margin-bottom: 16px;
}

.btn-logout {
  /*  border: 1px solid #EB5757;
    color: #EB5757 !important;
    border-radius: 100px;
    font-family: Roboto;
    font-weight: 500;
    font-size: 14px;
    margin-left: 14px;
    padding: 0 4px;
    height: 24px;
    display: inline-block;
	*/
	display: inline-block; 
	font-family: Montserrat;
	width: 85px;
	height: 27px;
	flex-shrink: 0;
	border-radius: 10px;
	background: #C70003;
	color: #FFF;
	font-family: Montserrat;
	font-size: 10px;
	font-style: normal;
	font-weight: 600;
	line-height: 16px; /* 160% */
}
.btn-copy,
.btn-copy-short {
    border: 1px solid #007AFF;
    background: #007AFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 100px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    width: 72px;
    cursor: pointer;
}
.btn-copy:hover,
.btn-copy-short:hover {
    border: 1px solid #007AFF;
    background: #007AFF;
    box-shadow: none;
}




.logout-button {
	background-color: #C70003; /* �ջ��� */
	color: white;
	border: none;
	border-radius: 10px;
	padding: 10px 15px;
	cursor: pointer;
	display: inline-block; /* �� inline-block ������� height ��� width �ӧҹ */
	text-decoration: none;
	font-weight: 400;
	font-family: Montserrat;
	font-size: 12px;
	margin-left: 20px;
}
.logout-button:hover {
	background-color: #99181a; /* ����¹������ͪ�� */
	color: white;
}
.user-info {
	flex-grow: 1; /* �������ż������µ�� */
	padding-right: 20px;
	border-right: 1px solid white;
	color: white;
	font-family: Prompt;
	font-size: 14px;
	line-height: 20px;

}
.rd10 {
    border-radius: 10px;
}
.control-group {
    margin-bottom: 20px;
}
.btn-process {
	padding: 2px 5px;
	width: 100%;
	font-weight: 400;
	font-size: 10px;
}
.btn-download {
	padding: 0;
	width: 100%;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    border: none;
    height: 48px;
    font-style: normal;
    font-weight: 500;
}


/* --- Styled Inputs --- */
.custom-select, .file-input-wrapper {
    width: 100%;
    border: 1px solid #CED4DA;
    border-radius: 8px;
    padding: 2px 15px;
    font-size: 16px;
    background-color: white;
}

.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 12px;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    padding: 0;
}

.file-input {
    display: none; /* ��͹ input file ��ԧ */
}

.file-label-button {
    background-color: #E9ECEF;
    padding: 5px 8px;
    border-right: 1px solid #CED4DA;
    cursor: pointer;
    border-radius: 8px;
	margin: 5px;
	font-weight: 600;
	font-family: Montserrat;
	font-size: 12px;
}

.file-name {
    padding-left: 8px;
    color: #6c757d;
	font-size: 12px;
}

/* --- Checkbox --- */
.checkbox-label {
    font-size: 14px;
    color: #212529;
    margin-left: 8px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* --- Custom Table Styles for #tb-qr --- */
/* ��������ǵ��ҧ�͡ */
#tb-qr thead th,
table.dataTable thead th,
table.dataTable thead td {
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* �����鹤���� header �ͧ bootstrap �͡ */
.table thead th {
    border-bottom: none !important;
}

/* �ѹ DataTables ���������� */
table.dataTable.no-footer {
    border-bottom: none !important;
}


#tb-qr {
  font-family: 'Prompt';
  font-weight: bold;
  color: #000;
}
#tb-qr.table-striped tbody tr:nth-of-type(odd) {
  background-color: #EBEBFF; 
 
}

#tb-qr.table-striped tbody tr:nth-of-type(odd) td:first-child {
    border-top-left-radius: 8px;    /* �駺����� */
    border-bottom-left-radius: 8px; /* ����ҧ���� */
}

#tb-qr.table-striped tbody tr:nth-of-type(odd) td:last-child {
    border-top-right-radius: 8px;   /* �駺���� */
    border-bottom-right-radius: 8px;  /* ����ҧ��� */
}

#tb-qr.table-hover tbody tr:hover {
  /* <<< ����¹�յ͹ hover ������ */
  background-color: #e2ecf9;
}

#tb-qr.table-bordered,
#tb-qr.table-bordered th,
#tb-qr.table-bordered td {
 border: none;
}
#tb-qr thead th {
    border: none;
	font-weight: 600;
	font-size: 15px;
}
#tb-qr tbody td,
#tb-qr a {
    border: none;
	font-weight: 500;
	font-size: 12px;
}

 /* Pagination -- */
#tb-qr_paginate {
	float: right;
	margin-top: 1rem;
	font-size: 12px;
}
#tb-qr_paginate .page-link {
	color: #555;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 8px !important;
	margin: 0 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	transition: all 0.2s ease-in-out;
}
#tb-qr_paginate .page-item:not(.disabled) .page-link:hover {
	background-color: #f0f2f5;
	border-color: #ccc;
	transform: translateY(-2px);
}
#tb-qr_paginate .page-item.active .page-link {
	background-color: #9d9d9d;
	border-color: #9d9d9d;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}
#tb-qr_paginate .page-item.disabled .page-link {
	color: #aaa;
	background-color: #f8f9fa;
}

 /* --- Custom Search Input --- */
#tb-qr_filter { float: right; }
#tb-qr_filter input[type="search"] {
	border: 1px solid #ddd; border-radius: 8px;
	padding: 0.5rem 0.75rem;
	transition: all 0.2s ease-in-out; outline: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3e%3cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px 16px;
	padding-left: 10px;
	font-size: 12px;
}
#tb-qr_filter input[type="search"]:focus {
	border-color: #9d9d9d;
}
#tb-qr_filter input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none; /* �Ըշ���йӷ���ش㹡��ź����ͧ��������� */
    display: none;            /* ��͹����������� */
}

#qr-container {
	margin-bottom: 10px;
	display: inline-block;
	padding: 20px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#qr-canvas {
	max-width: 100%;
	height: auto;
	border: 1px solid #ddd;
	border-radius: 5px;
}
.preset-colors {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.preset-color {
	width: 40px;
	height: 30px;
	cursor: pointer;
	border: 3px solid transparent;
	transition: border-color 0.3s ease;
}

.preset-color:hover,
.preset-color.active {
	border-color: #667eea;
	transform: scale(1.1);
}

 @media (max-width: 600px) {
	.form-row {
		flex-direction: column;
	}
	
	.preset-colors,
	.gradient-options {
		justify-content: center;
	}
}

.btn-process {
    width: auto !important;
    min-width: 86px;
    height: 30px;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap !important;
    line-height: 1 !important;
    font-size: 11px;
}
.btn-process i {
    line-height: 1;
    flex: 0 0 auto;
}

.url-ellipsis {
    display: block;
    max-width: 320px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: inherit;
}

@media (max-width: 768px) {

    .card {
        margin-bottom: 16px;
    }

    .row.d-flex > div {
        margin-bottom: 16px;
    }

    .btn-process {
        width: 100%;
        justify-content: center;
    }

    .logout-button {
        white-space: nowrap;
    }
}

table td {
    vertical-align: middle !important;
}
.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 768px) {

    .table td,
    .table th {
        font-size: 13px;
        padding: 10px 8px;
    }

    .btn-process {
        font-size: 12px !important;
    }

}




/* ===== Desktop ===== */
@media (min-width: 769px) {

    /* �Դ scroll desktop */
    .table-responsive,
    .dataTables_wrapper {
        overflow-x: visible !important;
    }

    /* �����ҧ�ʹ� */
    #tb-qr {
        width: 100% !important;
    }

    /* �������ŧ */
    .btn-process {
        min-width: 68px !important;
        height: 28px !important;
        font-size: 10px !important;
        padding: 0 8px !important;
        gap: 4px !important;
    }

    .btn-process i {
        font-size: 10px !important;
    }
}


/* ===== Mobile ===== */
@media (max-width: 768px) {

    /* ��� scroll ��੾�� mobile */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border: none !important;
        background: transparent !important;
    }

    .dataTables_wrapper {
        overflow-x: auto !important;
        border: none !important;
        background: transparent !important;
    }

    /* �ѧ�Ѻ�������ҧ���ҧ */
    #tb-qr {
        min-width: 820px;
    }

    /* ���� mobile */
    .btn-process {
        min-width: 60px !important;
        height: 26px !important;
        font-size: 9px !important;
        padding: 0 6px !important;
        gap: 3px !important;
    }

    .btn-process i {
        font-size: 9px !important;
    }

    /* ��͹ scrollbar �� */
    .table-responsive::-webkit-scrollbar,
    .dataTables_wrapper::-webkit-scrollbar {
        height: 4px;
    }

	    /* �Ѵ pagination ��������ҧ */
    #tb-qr_paginate {
        width: 100%;
        text-align: center !important;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* �������ŧ */
    #tb-qr_paginate .page-link {
        padding: 8px 8px !important;
        font-size: 11px !important;
        margin: 0 2px !important;
    }

    /* ��͹�Ţ����Թ */
    #tb-qr_paginate .paginate_button {
        display: none !important;
    }

    /* �ʴ�੾�з����� */
    #tb-qr_paginate .previous,
    #tb-qr_paginate .next,
    #tb-qr_paginate .current,
    #tb-qr_paginate .current + .paginate_button,
    #tb-qr_paginate .ellipsis,
    #tb-qr_paginate .last {
        display: inline-block !important;
    }


}

