@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --hc-primary: #0d6efd;
    --hc-primary-hover: #0b5ed7;
    --hc-secondary: #20c997;
    --hc-secondary-hover: #1aa179;
    --hc-bg-color: #f4f7fe;
    --hc-card-bg: #ffffff;
    --hc-text-main: #2b3674;
    --hc-text-muted: #a3aed1;
    --hc-border: #e2e8f0;
    --hc-danger: #dc3545;
    --hc-warning: #ffc107;
    --hc-success: #198754;
    --hc-shadow: 0px 18px 40px rgba(112, 144, 176, 0.12);
    --hc-border-radius: 15px;
    --hc-font: 'Inter', sans-serif;
}

body {
    font-family: var(--hc-font) !important;
    background-color: var(--hc-bg-color) !important;
    color: var(--hc-text-main) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hc-font) !important;
    font-weight: 700 !important;
    color: var(--hc-text-main) !important;
}

/* Cards */
.hc-card {
    background: var(--hc-card-bg);
    border-radius: var(--hc-border-radius);
    box-shadow: var(--hc-shadow);
    border: none;
    /* padding: 24px; */
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hc-card-header {
    border-bottom: 1px solid var(--hc-border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.hc-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--hc-text-main);
    margin: 0;
}

/* Buttons */
.btn-hc-primary {
    background-color: var(--hc-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}
.btn-hc-primary:hover {
    background-color: var(--hc-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    color: white !important;
}

.btn-hc-secondary {
    background-color: var(--hc-secondary) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}
.btn-hc-secondary:hover {
    background-color: var(--hc-secondary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
    color: white !important;
}

.btn-hc-outline {
    background-color: transparent !important;
    color: var(--hc-primary) !important;
    border: 2px solid var(--hc-primary) !important;
    border-radius: 10px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}
.btn-hc-outline:hover {
    background-color: var(--hc-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Forms */
.hc-form-control {
    border-radius: 10px !important;
    border: 1px solid var(--hc-border) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: var(--hc-text-main) !important;
    background: #fdfefe !important;
    transition: all 0.2s ease;
    width: 100%;
}
.hc-form-control:focus {
    border-color: var(--hc-primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
    outline: none;
}
.hc-label {
    font-weight: 600;
    color: var(--hc-text-main);
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

/* Select2 overrides to match theme */
.select2-container--default .select2-selection--single {
    border-radius: 10px !important;
    border: 1px solid var(--hc-border) !important;
    height: 46px !important;
    padding: 8px 16px !important;
    background: #fdfefe !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--hc-text-main) !important;
    line-height: 28px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 10px !important;
}

/* Sidebar overriding */
.deznav {
    background: white !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05) !important;
}
.deznav .metismenu > li > a {
    color: var(--hc-text-muted) !important;
    font-weight: 500;
    border-radius: 10px;
    margin: 5px 15px;
    transition: all 0.3s ease;
}
.deznav .metismenu > li > a:hover,
.deznav .metismenu > li > a.active {
    background: var(--hc-primary) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(13,110,253,0.3);
}

/* Header overriding */
.header {
    background: white !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
    border-bottom: none !important;
}
.header-content h3, .header-content h5 {
    color: var(--hc-text-main) !important;
}

/* Login Page specific */
.login_bg {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(13, 110, 253, 0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px) !important;
}
.login_wrapper {
    min-height: 100vh;
    /* display: flex; */
    align-items: center;
    background: linear-gradient(135deg, var(--hc-bg-color) 0%, #e0e7ff 100%);
}
.icn_input {
    position: relative;
}
.icn_input .icn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: var(--hc-text-muted);
}
.icn_input .hc-form-control {
    padding-left: 40px !important;
}
.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    cursor: pointer;
    color: var(--hc-text-muted);
}
.captcha-container {
    border: 1px solid var(--hc-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
}
.captcha-container input {
    border: none !important;
    border-radius: 0 !important;
}
.captcha-container .captcha-img-box {
    background: #fdfefe;
    border-left: 1px solid var(--hc-border);
    padding: 0 10px;
    display: flex;
    align-items: center;
}

/* Tables */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}
.table thead th {
    background-color: var(--hc-bg-color) !important;
    color: #000 !important;
    /* color: var(--hc-text-muted) !important; */
    font-weight: 600 !important;
    font-size: 14px;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    padding: 15px !important;
    border: none !important;
}
/* .table thead th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.table thead th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
} */
.table tbody td {
    /* padding: 16px !important; */
    color: var(--hc-text-main) !important;
    font-weight: 500 !important;
    font-size: 13px;
    border-bottom: 1px solid var(--hc-border) !important;
    vertical-align: middle;
}
.table tbody tr:hover td {
    background-color: rgba(13, 110, 253, 0.02) !important;
}
/* .table tbody tr:last-child td {
    border-bottom: none !important;
} */

/* Status Badges */
.badge-hc-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--hc-success);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}
.badge-hc-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #b38600;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}
.badge-hc-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--hc-danger);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}
.badge-hc-info {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--hc-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

/* Modals */
.modal-content {
    border-radius: var(--hc-border-radius) !important;
    border: none !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1) !important;
}
.modal-header {
    border-bottom: 1px solid var(--hc-border) !important;
    background-color: #fcfdfe;
    border-radius: var(--hc-border-radius) var(--hc-border-radius) 0 0 !important;
    padding: 20px 24px;
}
.modal-title {
    font-weight: 700;
    color: var(--hc-text-main);
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    border-top: 1px solid var(--hc-border) !important;
    background-color: #fcfdfe;
    border-radius: 0 0 var(--hc-border-radius) var(--hc-border-radius) !important;
    padding: 20px 24px;
}

/* General Layout Tweaks */
.content-body {
    background: var(--hc-bg-color) !important;
    min-height: 100vh;
}
.card.border-0.shadow {
    background: var(--hc-card-bg);
    border-radius: var(--hc-border-radius);
    box-shadow: var(--hc-shadow) !important;
}
.card-header {
    border-bottom: 1px solid var(--hc-border) !important;
    background: transparent !important;
    padding: 20px 24px !important;
}
.card-header h4 {
    font-size: 18px;
    color: var(--hc-text-main) !important;
}

/* Utilities */
.text-hc-primary { color: var(--hc-primary) !important; }
.text-hc-secondary { color: var(--hc-secondary) !important; }
.text-hc-muted { color: var(--hc-text-muted) !important; }

/* Dashboard Summary Cards */
.hc-summary-card {
    background: var(--hc-card-bg);
    border-radius: var(--hc-border-radius);
    box-shadow: var(--hc-shadow);
    border: none;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.hc-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(13, 110, 253, 0.15);
}
.hc-summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}
.hc-summary-icon.primary { background: rgba(13, 110, 253, 0.1); color: var(--hc-primary); }
.hc-summary-icon.success { background: rgba(25, 135, 84, 0.1); color: var(--hc-success); }
.hc-summary-icon.warning { background: rgba(255, 193, 7, 0.1); color: #b38600; }
.hc-summary-icon.danger { background: rgba(220, 53, 69, 0.1); color: var(--hc-danger); }
.hc-summary-icon.info { background: rgba(13, 202, 240, 0.1); color: #0dcaf0; }
.hc-summary-icon.secondary { background: rgba(32, 201, 151, 0.1); color: var(--hc-secondary); }

.hc-summary-info h6 {
    margin: 0;
    font-size: 14px;
    color: var(--hc-text-muted) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hc-summary-info h3 {
    margin: 5px 0 0 0;
    font-size: 24px;
    font-weight: 700 !important;
    color: var(--hc-text-main) !important;
}
