:root {
    --primary-color: #14AB3B;
    --primary-hover: #00b34a;
    --text-dark: #37474f;
    --text-muted: #546e7a;
    --text-light: #90a4ae;
    --border-color: #e0e6ed;
    --background-light: #eeeeee;
    --input-background: #f5f7fa;
    --white: #fff;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --focus-shadow: rgba(0, 200, 83, 0.25);
}

body {
    background-color: var(--background-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 5px 5px 10px var(--shadow-color);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-icon i {
    color: var(--white);
    font-size: 28px;
}

.login-title {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
}

.form-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    /* text-transform: uppercase; */
    font-size: 12px;
    letter-spacing: 0.5px;
}

.form-control {
    padding: 12px;
    background-color: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 40px;
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--focus-shadow);
}

.btn-login {
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    font-weight: 500;
    font-size: 16px;
    margin-top: 10px;
    border-radius: 8px;
    color: var(--white);
}

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

.form-group {
    position: relative;
    margin-bottom: 10px;
}

.form-group i:not(.toggle-password) {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
}

.form-group .form-label~i:not(.toggle-password) {
    top: calc(100% - 18px);
}

.form-group input {
    padding-left: 35px;
    padding-right: 35px;
    height: 45px;
}

.form-group .toggle-password {
    position: absolute;
    right: 12px;
    top: calc(100% - 18px);
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
    z-index: 2;
    transition: color 0.2s ease;
}

.form-group .toggle-password:hover {
    color: var(--primary-color);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--primary-color);
}

/* added css */
#loginForm .fa-user {
    margin-top: -4px;
}

#loginForm .fa-lock {
    margin-top: -4px;
}

.error {
    display: block;
    color: #F44336;
    margin-bottom: 10px;
    font-size: 12px;
}

.btn:focus-visible {
    background-color: var(--primary-color);
    color: white;
}

#registerForm .ps-4 {
    padding-left: 2.5rem !important;
}

#registerForm .fa-lock {
    position: absolute;
    left: 10px;
    top: 59%;
    transform: translateY(-50%);
    color: #6c757d;
    margin-top: 0px;
}

.error-placeholder {
    padding: 0px;
    font-size: 12px;
}

.error-message {
    margin: 0px 0px 0px 13px;
    padding: 0px;
    font-size: 12px;
}

#toast-container>.toast-success {
    background-color: #111;
    color: #1de9b6;
    font-family: 'Segoe UI', sans-serif;
    border-left: 4px solid #00ffab;
    border-radius: 10px;
}


.plan-card {
    border-width: 2px;
    transition: box-shadow 0.2s, border-color 0.2s;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.06);
    background: #fff;
}

.plan-card:hover {
    box-shadow: 0 0 0 0.2rem #a5d6a7;
    border-color: #43a047;
    background: #f1f8f4;
}

.plan-current {
    border-color: #43a047 !important;
    box-shadow: 0 4px 16px rgba(67, 160, 71, 0.12);
    background: #e3f6e8 !important;
}

.nav-pills {
    width: auto !important;
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link.active {
    background-color: #43a047 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.10);
}

.nav-pills .nav-link {
    border-radius: 0.5rem;
    font-size: 1.1rem;
    margin: 0 0.25rem;
    color: #388e3c !important;
    background: #e3f6e8;
    border: none;
}

.btn-success,
.btn-outline-success {
    border-radius: 0.5rem;
    font-weight: 600;
}

.btn-success {
    background: #43a047;
    border-color: #43a047;
}

.btn-success:disabled,
.btn-success.disabled {
    background: #43a047;
    border-color: #43a047;
    opacity: 0.85;
}

.btn-outline-success {
    color: #43a047;
    border-color: #43a047;
    background: #d8fdd8;
    text-align: center;
}

.btn-outline-success:hover {
    background: #e3f6e8;
    color: #388e3c;
    border-color: #388e3c;
}

/* .card {
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.06);
} */

.table thead th {
    background: #e3f6e8;
    color: #1b5e20;
    border-top: none;
}

.table-hover tbody tr:hover {
    background: #f1f8f4;
}

.pagination .page-link {
    border-radius: 0.5rem;
    color: #43a047;
    border: none;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background: #43a047;
    color: #fff;
    border: none;
}

.btn-light.border {
    background: #fff;
    border-color: #e3f6e8;
    color: #43a047;
}

.btn-light.border:hover {
    background: #e3f6e8;
    color: #1b5e20;
}

.form-control:focus {
    border-color: #43a047;
    box-shadow: 0 0 0 0.2rem #a5d6a7;
}

.invoice-btn {
    background: #e3f6e8;
    color: #43a047;
    border: none;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.invoice-btn:hover {
    background: #43a047;
    color: #fff;
}

.badge.bg-light.text-success {
    background: #e3f6e8 !important;
    color: #388e3c !important;
    border-radius: 0.5rem;
    font-weight: 500;
}

.pagination .page-link {
    color: #1b5e20;
    border: 1px solid #1b5e20;
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.pagination .page-item.active .page-link {
    background-color: #1b5e20;
    border-color: #1b5e20;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background-color: #f2f2f2;
    border-color: #ccc;
    pointer-events: none;
}

.page-link img {
    max-height: 16px;
    width: auto;
    vertical-align: middle;
}

.hidden {
    display: none !important;
}

#paymentModal img:hover {
    transform: scale(1.05);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.renewbtn {
    background-color: #00c896;
    padding: 2px;
    border-radius: 5px;
    text-decoration: auto;
    margin-bottom: 4px;
    font-size: 10px;
    color: white;
}

#connectaccount, #selectlabel, #selectstatus, #selectsequence, #searchLabel, #searchContact, #searchCampaign, #status {
    font-size: 13px;
    width: 250px;
    height: 40px;
}
#import_contact, #import_label {
    font-size: 13px;
    width: 100%;
    height: 40px;
}
#createButton {
    font-size: 13px;
    height: 40px;
}
.table {
    font-size: 13px;
}
.delete-label, .edit-label {
    border: none;
    border-radius: 5px;
    font-size: 11px !important;
}
#tableLoader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.7);
    width: 100%;
    height: 100%;
    z-index: 10;
    text-align: center;
    padding-top: 20px;
}
#tableLoader img {
    position: relative;
    top: 45%;
    transform: translateY(-50%);
}
#createLabelForm .modal-body #labelError {
    padding: 8px;
    font-size: 12px;
}
.breadcrumb .breadcrumb-item {
    font-size: 14px;
    margin-top: -2px
}
.breadcrumb > .active {
    font-size: 14px;
}
.text-subtitle {
    margin-top: 3px;
    font-size: 14px;
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 5px 0;
    z-index: 1000;
}
.dropdown-menu-custom .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}
.dropdown-menu-custom .dropdown-item i {
    margin-right: 8px;
    font-size: 16px;
}
/* .dropdown-menu-custom .dropdown-item:hover {
    background: #f5f5f5;
    color: black;
} */
.dropdown-menu-custom .text-danger {
    color: #dc3545 !important;
}

.manage-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
}

.manage-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;

}

.manage-item:hover {
    background: #f5f5f5;
}

.btn-default {
    background: #E4E6EF;
    color: #000;
    border: 1px solid #E4E6EF;
    padding: 2px 20px 2px 20px;
    margin-left: 10px;
    border-radius: 5px;
    font-size: 14px;
}
.btn-secondary {
    /* margin-left: 10px; */
    height: 40px;
    margin-right: 4px;
}
.form-select {
    height: 40px;
}
.select2-container {
    z-index: 2050 !important;
}
.select2-dropdown {
    z-index: 2051 !important;
}
.samplecsv {
    font-size: 10px !important;
    background: #15A637;
    padding: 2px 10px 2px 10px;
    margin-right: 18px !important;
    border: none;
    border-radius: 5px;
    /* font-weight: bold; */
    text-decoration: none;
    color: white;
}
.icon-btn {
    background: #f9fbfd;
    border: 1px solid lightgray;
    border-radius: 6px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.icon-btn:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    background: #f1f5f9;
}
.icon-btn i {
    font-size: 12px;
    color: #444;
}
.category-btn {
    border-radius: 4px !important;
}
#templateForm input, select, textarea, button {
    font-size: 0.875rem !important;
}
.menu-container {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    position: absolute;
    bottom: 40px; /* pushes menu above the button */
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 220px;
    z-index: 1000;
    font-family: Arial, sans-serif;
}
.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
    font-size: 11px;
}
.dropdown-menu li:hover:not(.disabled) {
    background: #f5f5f5;
}
.dropdown-menu li.disabled {
    color: #888;
    cursor: default;
}

.dropdown-menu small {
    color: #999;
    font-size: 12px;
    float: right;
}
/* Quick Reply box */
.quick-reply-box {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-top: 8px;
    position: relative;
}
.quick-reply-box .close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 16px;
    cursor: pointer;
    color: #888;
}
.quick-reply-box .close-btn:hover { color: #000; }
.quick-reply-box label { font-size: 12px; font-weight: bold; display: block; margin-bottom: 5px; }
.quick-reply-box input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.qr-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Type smaller, Button Text bigger */
    gap: 10px;
}
.qr-grid label {
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.qr-grid input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.qr-grid #custom {
    background: #f2f4f4;
}
/* Grid for Call to Action */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 10px;
}
.cta-grid label {
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.cta-grid input, .cta-grid select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.quick-reply-box, .cta-box {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-top: 8px;
    position: relative;
}
.quick-reply-box .close-btn, .cta-box .close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 16px;
    cursor: pointer;
    color: #888;
}
.quick-reply-box .close-btn:hover, .cta-box .close-btn:hover {
    color: #000;
}
.form-control:disabled, .form-control:read-only {
    background-color: #f2f4f4;
    opacity: 1;
}
.sync-template {
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: lightseagreen;
}
.select2-container .select2-selection--single {
    height: 40px !important;
    border: 1px solid lightgray !important;
    padding: 6px 12px;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.875rem !important;
}
.select2-container .select2-selection__rendered {
    line-height: 26px !important;
    font-size: 0.875rem !important;
}
.select2-container .select2-selection__arrow {
    height: 40px !important;
    top: 0px !important;
}
.select2-container .select2-results__option {
    font-size: 0.875rem !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    font-size: 0.875rem !important;
}
#message {
    height: auto;
}
#emoji-picker {
    position: absolute;
    z-index: 9999;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    margin-top: -110px;
    margin-right: 10px;
    left: 390px !important;
}
#emoji-picker.show {
    display: block;
}
#charCount {
    font-size: 14px;
}
#sampleSection {
    margin-top: 15px;
    background: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    padding: 8px;
    border-radius: 6px;
}
.options-btn {
    margin-left: 8px !important;
}
.select2 {
    width: 100% !important;
    height: 25px !important;
}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}
#chkAll, #chk {
    cursor: pointer;
}

/* Api Developer Tab CSS */
.custom-tab {
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #6c757d;
    background-color: transparent;
    transition: all 0.3s ease;
    border-radius: 6px;
    color: white;
    width: 130px;
    border: none !important;
}
.custom-tab:hover {
    color: white;
    border: none !important;
}
.custom-tab.active {
    color: white;
    font-weight: 600;
    background-color: transparent;
}
.tab-content {
    margin-top: 20px;
    background: white;
    padding: 10px;
    border-radius: 6px;
}
.nav-tabs {
    background: #15a637;
    width: 26%;
    padding: 4px;
    border-radius: 6px;
}
.tooltip-custom {
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
}
.sidebar {
  min-height: 100vh;
  background: #f8f9fa;
  border-right: 1px solid #ddd;
  padding: 15px;
}
.sidebar a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #000;
  margin-bottom: 5px;
  border-radius: 5px;
  font-size: 13px;
}
.sidebar a.active,
.sidebar a:hover {
  background: #e9ecef;
}
.small {
  font-size: 12px;   
}
.check-icon {
  color: #28a745;
}
.list-group {
    width: 40%;
}
.list-group .list-group-item {
    cursor: pointer;
}
.btn-import-contact-remove {
    padding: 0px 10px 0px 10px;
    background: crimson;
    color: white;
    border-radius: 4px;
    border: navajowhite;
    font-size: 11px !important;
}