.card-title {
    font-weight: 600;
    font-size: 14px;
}

.badge {
    font-size: 0.85rem;
    padding: 0.4em 0.6em;
}

textarea[disabled] {
    background-color: #f8f9fa;
    color: #333;
    font-family: monospace;
}

.variable-btn-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.add-variable-btn {
    background: none;
    border: none;
    color: #606B85;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.add-variable-btn .plus {
    font-size: 20px;
    margin-right: 4px;
}

.tooltip-icon {
    position: relative;
    cursor: pointer;
    font-size: 14px;
    color: #606B85;
    border: 1px solid #606B85;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 16px;
    font-weight: bold;
}

.tooltip-text {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: #1a1f36;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 10;
    text-align: left;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1a1f36 transparent transparent transparent;
}

.tooltip-icon:hover .tooltip-text {
    display: block;
}

#variables input {
    display: inline-block;
    margin-right: 8px;
    padding: 6px;
    font-size: 14px;
}

.variable-row {
    margin-bottom: 10px;
}

.custom-floating-select {
    margin-bottom: 24px;
    position: relative;
}

.asterisk {
    color: red;
}


/*frontend changes*/
/* --- Navbar Styling --- */

.btn-primary {
    background-color: #24A9E1;
    color: white;
    transition: background-color 0.2s ease;
    border-color : #24A9E1;
}

.btn-primary:hover {
    background-color: #1c8dc0;
    color: white;
}

.navbar-laravel {
    background-color: #F9F9FA;
    border-bottom: 1px solid #ddd;
    padding: 0; /* optional, for tighter spacing */
}

.navbar-nav {
    text-transform: uppercase;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

.navbar-nav .nav-item {
    position: relative;
    margin: 0 12px;
}

.navbar-nav .nav-link {
    color: #666;
    font-size: 14px;
    padding: 20px 12px;
    border: none;
    background: none;
    position: relative;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: #24A9E1;
}

/* Blue underline effect on hover/active */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px; /* align with navbar bottom */
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
    background-color: #24A9E1;
}

/* Right side language and user menu */
select.form-control-sm {
    padding: 3px 5px;
    font-size: 13px;
    height: auto;
    min-width: 100px;
}

.navbar .dropdown-menu {
    font-size: 14px;
}

/* --- Custom Button --- */
.custom-button {
    background-color: #24A9E1;
    color: white;
    transition: background-color 0.2s ease;
}

.custom-button:hover {
    background-color: #1c8dc0;
    color: white;
}

/* --- Action Dropdown Button --- */
.action-menu-btn {
    background: transparent;
    border: none;
    padding: 4px;
    color: #333;
    font-size: 18px;
    line-height: 1;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.action-menu-btn:hover {
    background-color: #e9ecef;
}

/* Remove Bootstrap dropdown caret */
.dropdown-toggle::after {
    display: none !important;
}

/* Dropdown menu appearance */
.dropdown-menu {
    min-width: 140px;
    font-size: 14px;
    padding: 6px 0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: none;
    background-color: #fff;
    z-index: 9999;
}

.dropdown-item {
    padding: 10px 16px;
    font-weight: 500;
    border-radius: 4px;
    color: #534F4F;
}

.dropdown-item:hover {
    background-color: #f1f3f5;
}

.dropdown-item.text-danger {
    color: #e3342f;
}

.dropdown-item.text-danger:hover {
    background-color: #fff0f0;
}

/* --- DataTable: Clean, card-like rows --- */
.custom-datatable {
    border-collapse: separate !important;
    border-spacing: 0 12px !important; /* adds vertical spacing */
    background-color: transparent;
    width: 100%;
}

/* Header styles */
.custom-datatable th {
    background-color: #24A9E1;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 14px 16px;
    border: none;
    text-align: center;
}

.custom-datatable thead th {
    padding-top: 22px;
    padding-bottom: 22px;
    vertical-align: middle;
}

.custom-datatable th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.custom-datatable th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Row appearance */
.custom-datatable tbody tr {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #A8A3A2; /* Light border */
}

.custom-datatable td {
    vertical-align: middle;
    /*text-align: center;*/
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #534F4F;
}

/* Rounded corners on first/last TD */
.custom-datatable tbody td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.custom-datatable tbody td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Zebra striping */
.custom-datatable tbody tr:nth-child(even) {
    background-color: #EAF4FE;
}

/* Hover effect */
.custom-datatable tbody tr:hover td {
    background-color: #eef6fb;
}

/* Remove any default table/grid lines */
.custom-datatable,
.custom-datatable th,
.custom-datatable td {
    border: none !important;
    box-shadow: none !important;
}

button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/*pagination*/
/* Pagination container */
.dataTables_wrapper .dataTables_paginate {
    text-align: center;
    margin-top: 20px !important;
}

/* Basic pagination button styles */
.dataTables_wrapper .paginate_button.page-item a.page-link {
    border: none !important;
    background: transparent !important;
    color: #888 !important;
    padding: 4px 10px !important;
    margin: 0 2px;
    font-size: 14px;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

/* Active page */
.dataTables_wrapper .paginate_button.page-item.active a.page-link {
    background-color: #24A9E1 !important;
    color: white !important;
}

/* Hover effect */
.dataTables_wrapper .paginate_button.page-item:not(.active):hover a.page-link {
    background-color: #f1f3f5 !important;
    color: #333 !important;
}

/* Disabled button */
.dataTables_wrapper .paginate_button.page-item.disabled a.page-link {
    color: #ccc !important;
    pointer-events: none !important;
    cursor: not-allowed;
    background: transparent !important;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    margin-left: -25px;
    margin-top: 10px;
}

.section-heading i {
    margin-right: 12px;
    font-size: 20px;
    color: #6c757d;
}

.section-heading h5 {
    font-weight: 600;
    margin-bottom: 4px;
}

.section-heading p {
    margin-bottom: 0;
    font-size: 14px;
    color: #888;
}

.section-hr {
    border-top: 1px solid #e0e0e0;
    width: 98%;
}

.section-img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}




@media (max-width: 767.98px) {

    /* Navbar: Stack items vertically and center text */
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin: 0;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px;
        width: 100%;
        text-align: left;
    }

    /* Navbar Right (Language + Profile) */
    .navbar .navbar-collapse .navbar-nav.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        margin-top: 10px;
    }

    .navbar .form-control-sm {
        width: 100%;
        margin-top: 10px;
    }

    /* DataTable: Enable horizontal scroll */
    .custom-datatable-wrapper {
        overflow-x: auto;
    }

    .custom-datatable {
        min-width: 600px;
    }

    /* Section heading: Stack icon and text */
    .section-heading {
        flex-direction: row;
        align-items: center;
        margin-left: 0;
    }

    .section-heading i {
        font-size: 18px;
    }

    .section-heading h5 {
        font-size: 16px;
    }

    .section-heading p {
        font-size: 13px;
    }

    /* Buttons: full width */
    .btn.custom-button {
        width: 100%;
        margin-top: 10px;
    }

    /* Responsive spacing below title */
    .d-flex.justify-content-between.align-items-center.mb-2 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}

.branding {
    display: flex;
    align-items: center; /* vertically centers the text relative to image */
    justify-content: center; /* optional: center entire block */
    margin-top: 2rem;
}

.branding img {
    width: 64px;
    height: 64px;
    margin-right: 1.5rem; /* space between image and text */
}

.branding-text {
    font-size: 2rem; /* bigger text (≈ 32px) */
    font-weight: 700;
    color: #1a202c;
}

.login-success-wrapper {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.login-success-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.login-success-message {
    margin-bottom: 1rem;
}

.login-success-heading {
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    margin-bottom: 0;
    color: #2d2d2d;
    padding-bottom: 5px;
}

.login-success-logo {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.login-logo-img {
    width: 64px;
    height: auto;
}

/* Responsive tweaks */
@media (min-width: 768px) {
    .login-success-message {
        margin-bottom: 0;
    }

    .login-success-logo {
        margin-top: 0;
    }
}

@media (max-width: 991.98px) {
    .custom-btn-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .custom-btn-wrapper .custom-button {
        width: 100%;
    }
}

.custom-btn-wrapper {
    gap: 10px;
}






