:root {
    --primary-color: #13406b;
    --secondary-color: #7bccf3;
    --dark-color: #787878;
    --light-color: #e5e5e5;
    --body-bg-color: white;
    --footer-bg-color: #fafbfd;
    --bs-primary: #13406b;
    --bs-primary-rgb: 19, 64, 107;
    --bs-secondary: #7bccf3;
    --bs-secondary-rgb: 123, 204, 243;
    --font-family-base: 'Poppins', sans-serif;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.2);
    --currency-symbol: '$';
}

body {
    background-color: var(--body-bg-color);
    font-family: var(--font-family-base);
}

.passwordBox {
    border-radius: var(--radius-md);
}

.ibox-content {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

h1, h2 {
    font-family: var(--font-family-base);
}

h1 {
    font-size: var(--font-size-xxl);
}

h2 {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
}

h3 {
    font-size: var(--font-size-lg);
}

h4 {
    font-size: var(--font-size-base);
}

h5 {
    font-size: var(--font-size-sm);
}

.form-control {
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
}

.btn {
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #0f3254;
    border-color: #0f3254;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #0f3254;
    border-color: #0f3254;
}

.ibox {
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
}

.ibox-title {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.navbar {
    background-color: white;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.navbar h2 {
    margin: 0;
    margin-right: 30px;
    line-height: 1;
}

.navbar-collapse {
    flex-grow: 1;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
}

.navbar-nav li a {
    font-size: 14px;
}

.nav > li.active > a {
    color: white !important;
    background-color: var(--primary-color) !important;
}

.dropdown-menu {
    border: 1px solid var(--primary-color);
}

.text-primary-custom {
    color: var(--primary-color);
}

small {
    font-size: var(--font-size-sm);
    color: var(--dark-color);
}

.currency::before {
    content: var(--currency-symbol);
}

/* Login Page Styles */
.passwordBox {
    background-color: transparent;
    max-width: 500px;
}

.login-box {
    border: 3px solid var(--primary-color) !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 700px;
    margin: 0 auto;
    padding: 40px;
}

.logo-center {
    text-align: center;
    padding: 20px 0;
}

.login-title {
    color: var(--primary-color);
    font-weight: 600;
}

.login-input {
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    font-size: 16px;
}

.login-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(19, 64, 107, 0.25);
}

.login-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    width: 50%;
    margin: 0 auto;
    display: block;
    padding: 12px;
    font-size: 16px;
}

.login-btn:hover,
.login-btn:focus,
.login-btn:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* NewPromotion.aspx Specific Styles */

/* Global font consistency - Only for NewPromotion page */
#divDashboard * {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

#divDashboard h4 {
    font-size: 16px;
    font-weight: 600;
    color: #676a6c;
}

#divDashboard label {
    font-size: 15px;
    color: #676a6c;
    font-weight: 500;
}

/* Card styling similar to reference - Only for NewPromotion */
#divDashboard .ibox {
    border: 2px solid #13406b;
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 20px;
}

#divDashboard .ibox-content {
    padding: 25px;
    background: #f9fafb;
    border-radius: 6px;
}

/* Form fields styling - Only for NewPromotion */
#divDashboard .form-control {
    background-color: #e8eaed;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 15px;
}

#divDashboard .form-control:focus {
    background-color: #ffffff;
    border-color: #13406b;
    box-shadow: none;
}

/* Date fields in same line with 'to' text */
#divDashboard #data_5 .row {
    display: flex;
    align-items: center;
    gap: 15px;
}

#divDashboard #data_5 .col-md-6 {
    flex: 1;
    max-width: none;
}

#divDashboard #data_5 .col-md-6 label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#divDashboard #data_5 .col-md-6 .form-control {
    width: 100%;
    min-width: 200px;
}

#divDashboard #data_5 .row::after {
    content: 'to';
    font-weight: 600;
    color: #676a6c;
    padding: 0 15px;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 10px;
}

/* Horizontal spacing for timing checkboxes */
#divDashboard input[type="radio"].Timings {
    margin-left: 20px;
    margin-right: 8px;
}

#divDashboard .Timings + label {
    margin-right: 25px;
}

/* Promotion criteria section */
#divDashboard .form-group input[type="radio"] + label h4 {
    display: inline;
    font-size: 14px;
    font-weight: 500;
}

/* Remove line between buttons */
#divDashboard .row:last-child .ibox {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

#divDashboard .row:last-child .ibox-content {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Button styling - Only for NewPromotion */
#divDashboard .btn-primary {
    background-color: #13406b;
    border-color: #13406b;
    border-radius: 4px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 15px;
}

#divDashboard .btn-primary:hover {
    background-color: #0f3254;
    border-color: #0f3254;
}

/* Required field asterisk */
#divDashboard label b::after {
    content: ' *';
    color: #dc3545;
}


/* Fix for table button icons */
.dataTables-example .btn i {
    font-size: 14px !important;
    color: inherit !important;
    display: inline-block !important;
    visibility: visible !important;
}

.dataTables-example .btn-success i {
    color: white !important;
}

.dataTables-example .btn-danger i {
    color: white !important;
}


/* Fix for DataTables sorting arrows */
.dataTables-example th {
    position: relative;
}

.dataTables-example .sorting:after,
.dataTables-example .sorting_asc:after,
.dataTables-example .sorting_desc:after {
    font-family: 'FontAwesome' !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.dataTables-example .sorting:after {
    content: "\f0dc" !important;
}

.dataTables-example .sorting_asc:after {
    content: "\f0de" !important;
}

.dataTables-example .sorting_desc:after {
    content: "\f0dd" !important;
}


/* Fix for glyphicon icons */
.glyphicon {
    display: inline-block !important;
    font-family: 'Glyphicons Halflings' !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.glyphicon-chevron-down:before {
    content: "\e114" !important;
}

.glyphicon-chevron-up:before {
    content: "\e113" !important;
}


/* Bold styling for promotion type selection */
#divPromostions .ibox-content > label {
    font-weight: 600 !important;
}


/* Consistent font for promotion type selection */
#divPromostions .ibox-content {
    font-family: 'Poppins', sans-serif !important;
}

#divPromostions .ibox-content label {
    font-family: 'Poppins', sans-serif !important;
}


/* Lisamo date fields in same line */
#divLisamo #data_5 .input-daterange {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 0;
}

#divLisamo #data_5 .input-daterange .form-control {
    flex: 1;
    min-width: 200px;
}

#divLisamo #data_5 .input-daterange .input-group-addon {
    flex-shrink: 0;
    padding: 0 15px;
    background: transparent;
    border: none;
    font-weight: 600;
    color: #676a6c;
}


/* Spacing between checkbox and time slot labels */
#divDashboard input[type="checkbox"] {
    margin-right: 10px;
}

#divDashboard input[type="checkbox"] + label {
    margin-left: 0;
}


/* Match Lisamo date field size to promo name field */
#divLisamo .txtLisamoFromFilter,
#divLisamo .txtLisamoEndFilter {
    padding: 10px 15px !important;
    font-size: 15px !important;
    height: auto !important;
}


/* Fix for btn-circle icon */
.btn-circle i,
.btn-circle .fa,
.btn-circle .fa-plus {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
    font-family: 'FontAwesome' !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
}

.btn-circle .fa-plus:before {
    content: "\f067" !important;
}


/* Align Age Range, Gender, PostCode in same line */
#divDashboard .row .col-md-4 {
    display: flex;
    flex-direction: column;
}

#divDashboard .row .col-md-4 label {
    margin-bottom: 8px;
}

#divDashboard .row .col-md-4 select,
#divDashboard .row .col-md-4 input {
    height: 42px;
}

/* Ensure select2 dropdowns match height */
#divDashboard .select2-container .select2-selection--single {
    height: 42px !important;
    padding: 8px 12px !important;
}

#divDashboard .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
}

#divDashboard .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}


/* Passions Type dropdown styling */
#divDashboard .ddlpassiontype,
#divDashboard .select2_demo_2 {
    height: 42px !important;
    padding: 10px 15px !important;
}

/* Select2 multi-select styling for Passions */
#divDashboard .select2-container--default .select2-selection--multiple {
    min-height: 42px !important;
    padding: 5px 10px !important;
    background-color: #e8eaed !important;
    border: 1px solid #d1d5db !important;
}

#divDashboard .select2-container--default .select2-selection--multiple:focus {
    background-color: #ffffff !important;
    border-color: #13406b !important;
}


/* Frmvisit.aspx - Align Name textbox with Visit Period */
#divLisamo .txtLisamoPromoName {
    padding: 10px 15px !important;
    font-size: 15px !important;
    height: auto !important;
    background-color: #e8eaed !important;
    border: 1px solid #d1d5db !important;
}

#divLisamo .txtLisamoPromoName:focus {
    background-color: #ffffff !important;
    border-color: #13406b !important;
}


/* PurchaseGift.aspx - Blue Theme matching screenshot */
.wrapper.ecommerce #divDashboard .ibox {
    border: 3px solid #13406b !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.wrapper.ecommerce #divDashboard .ibox-title {
    background: #13406b !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px !important;
    text-align: center !important;
    margin: 0 !important;
}

.wrapper.ecommerce #divDashboard .ibox-title h3 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: white !important;
}

.wrapper.ecommerce #divDashboard .ibox-content {
    background: #ffffff !important;
    border: 3px solid #13406b !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 30px !important;
    margin: 0 !important;
}

.wrapper.ecommerce #divDashboard .ibox-footer {
    background: #ffffff !important;
    border: 3px solid #13406b !important;
    border-top: none !important;
    border-radius: 0 0 5px 5px !important;
    padding: 20px 30px !important;
    margin: 0 !important;
    text-align: right !important;
}

#divDashboard .row {
    margin-bottom: 20px;
}

#divDashboard .row:last-child {
    margin-bottom: 0;
}

#divDashboard .col-3 h4 {
    color: #676a6c;
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
}

#divDashboard .form-control {
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
    padding: 10px 15px;
    font-size: 15px;
    border-radius: 4px;
}

#divDashboard .form-control:focus {
    background-color: #ffffff;
    border-color: #13406b;
    box-shadow: 0 0 0 0.2rem rgba(19, 64, 107, 0.15);
}

#divDashboard .btn-primary {
    background-color: #13406b !important;
    border-color: #13406b !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
}

#divDashboard .btn-primary:hover {
    background-color: #0f3254 !important;
    border-color: #0f3254 !important;
}

#divDashboard .btn-secondry {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
}


/* Transaction.aspx - Blue Theme */
.wrapper.ecommerce {
    font-family: 'Poppins', sans-serif;
}

.wrapper.ecommerce .ibox {
    border: 2px solid #13406b;
    border-radius: 8px;
}

.wrapper.ecommerce .ibox-title {
    background: #13406b !important;
    color: white !important;
    border-radius: 6px 6px 0 0;
    padding: 15px 20px;
    text-align: center;
}

.wrapper.ecommerce .ibox-title h5,
.wrapper.ecommerce .ibox-title h4 {
    color: white !important;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.wrapper.ecommerce .ibox-content {
    background: #ffffff;
    font-size: 15px;
}

.wrapper.ecommerce .form-control {
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
    font-size: 15px;
}

.wrapper.ecommerce .form-control:focus {
    background-color: #ffffff;
    border-color: #13406b;
    box-shadow: 0 0 0 0.2rem rgba(19, 64, 107, 0.15);
}

.wrapper.ecommerce .btn-primary {
    background-color: #13406b !important;
    border-color: #13406b !important;
    font-size: 15px;
    font-weight: 600;
}

.wrapper.ecommerce .btn-primary:hover {
    background-color: #0f3254 !important;
    border-color: #0f3254 !important;
}

.wrapper.ecommerce .dataTables-example {
    font-size: 15px;
}

.wrapper.ecommerce .dataTables-example th,
.wrapper.ecommerce .dataTables-example td {
    font-size: 15px;
}

.wrapper.ecommerce label {
    font-size: 15px;
    color: #676a6c;
}


/* Transaction.aspx - Align dropdown and button in same line */
.wrapper.ecommerce #divTransfilter .row {
    display: flex;
    align-items: flex-end;
}

.wrapper.ecommerce #divTransfilter .col-sm-3,
.wrapper.ecommerce #divTransfilter .col-sm-2 {
    display: flex;
    flex-direction: column;
}

.wrapper.ecommerce #divTransfilter .col-sm-2 {
    align-items: flex-start;
}

.wrapper.ecommerce #divTransfilter .col-sm-2 .form-group {
    width: 100%;
    margin-top: 8px;
}

.wrapper.ecommerce #divTransfilter .col-sm-2 label {
    visibility: hidden;
    height: 0;
    margin: 0;
}

.wrapper.ecommerce .Selecttransaction {
    height: 42px;
    padding: 10px 15px;
}

.wrapper.ecommerce #btnReportshow {
    height: 42px;
    padding: 10px 20px;
    width: 100%;
    font-size: 15px !important;
}


/* PurchaseGift.aspx - Fix button styling and icons */
.wrapper.ecommerce #divDashboard .btn-primary,
.wrapper.ecommerce #divDashboard .btn-secondry {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.wrapper.ecommerce #divDashboard .btn-primary:focus,
.wrapper.ecommerce #divDashboard .btn-secondry:focus,
.wrapper.ecommerce #divDashboard .btn-primary:active,
.wrapper.ecommerce #divDashboard .btn-secondry:active {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.wrapper.ecommerce #divDashboard .btn i,
.wrapper.ecommerce #divDashboard .btn .fa {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: 'FontAwesome' !important;
    font-style: normal !important;
    font-weight: normal !important;
}

.wrapper.ecommerce #divDashboard .fa-trash:before {
    content: "\f1f8" !important;
}

.wrapper.ecommerce #divDashboard .fa-check:before {
    content: "\f00c" !important;
}


/* Dashboard.aspx - Bold labels for Sales, Discount, Transactions */
.dashboard-stats small,
.widget small,
.ibox-content small {
    font-weight: 600 !important;
    color: #13406b !important;
}


/* Subscription.aspx - Bold all headings */
.wrapper.ecommerce h1,
.wrapper.ecommerce h2,
.wrapper.ecommerce h3,
.wrapper.ecommerce h4,
.wrapper.ecommerce h5,
.wrapper.ecommerce h6 {
    font-weight: 600 !important;
}
