/* IndiaGST Dashboard - Main Stylesheet */

:root {
    --primary: #006666;
    --primary-dark: #004d4d;
    --primary-light: #008080;
    --secondary: #f39c12;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --info: #3498db;
    --dark: #000000;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #000000;
    --white: #ffffff;
    --font-primary: "Book Antiqua", "Palatino Linotype", "Palatino", serif;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Firefox Support */
* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--gray-100);
}

/* Sidebar Specific Scrollbar */
.sidebar::-webkit-scrollbar-track {
    background: var(--white);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-light);
}

.sidebar {
    scrollbar-color: var(--primary-light) var(--white);
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Book Antiqua", "Palatino Linotype", "Palatino", serif !important;
}

body,
html,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
td,
th,
input,
button,
select,
textarea,
label,
div,
strong,
small,
b,
i,
em {
    font-family: "Book Antiqua", "Palatino Linotype", "Palatino", serif !important;
}

body {
    font-size: 14px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--dark);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
}

.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #ffffff 0, #ffffff 80px, var(--primary) 80px, var(--primary-dark) 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.sidebar-header {
    padding: 0;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    background: #ffffff;
    height: 80px;
    z-index: 1001;
    overflow: visible;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ffffff;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.sidebar-logo img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.sidebar-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
}

.sidebar-subtitle {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

.sidebar-nav {
    padding: 8px 0;
    flex: 1;
    overflow-y: auto;
    margin: 0;
}

.nav-section {
    margin-bottom: 4px;
    margin-top: 0;
    padding: 0;
}

.nav-section-title {
    padding: 8px 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    font-weight: 600;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-left-color: var(--white);
}

.nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    margin-top: 0;
    min-height: 100vh;
    transition: var(--transition);
    width: calc(100% - 260px);
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--white);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    margin: 0;
    gap: 12px;
}

.header-left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    flex: 1;
    height: 100%;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 100%;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

.header-bottom {
    display: flex;
    align-items: center;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.breadcrumb-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--primary);
    background-color: rgba(0, 102, 102, 0.08);
}

.breadcrumb-separator {
    color: var(--gray-300);
    margin: 0 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.breadcrumb-current {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    padding: 2px 6px;
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: block;
}

.breadcrumb {
    display: none;
}

.breadcrumb a {
    display: none;
    line-height: 1;
}

.breadcrumb i {
    margin: 0;
    padding: 0;
    font-size: 8px;
}

.breadcrumb span {
    margin: 0;
    padding: 0;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    padding: 0;
    height: 100%;
}

.user-dropdown-container {
    position: relative;
    margin-right: 10px;
}

.user-dropdown {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 16px !important;
    background: #f1f5f9 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: 1px solid #e2e8f0 !important;
    user-select: none;
}

.user-dropdown:hover {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border-color: var(--primary) !important;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: #ffffff !important;
    min-width: 220px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px !important;
    z-index: 9999 !important;
    margin-top: 8px !important;
    display: none;
    flex-direction: column !important;
}

/* Bridge the gap for hover */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.user-dropdown-container:hover .dropdown-menu,
.dropdown-menu.show {
    display: flex !important;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    color: #1e293b !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    line-height: 1.2 !important;
}

.dropdown-item:hover {
    background: #f1f5f9 !important;
    color: var(--primary) !important;
}

.dropdown-item i {
    font-size: 18px !important;
    color: #64748b !important;
    width: 20px;
    text-align: center;
}

.dropdown-item:hover i {
    color: var(--primary) !important;
}

.dropdown-divider {
    height: 1px !important;
    background: #e2e8f0 !important;
    margin: 8px !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-danger i {
    color: #ef4444 !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.user-avatar {
    width: 36px !important;
    height: 36px !important;
    background: var(--primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.user-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px;
}

.user-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1 !important;
}

.user-role {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
}

/* Content */
.content {
    padding: 12px 20px;
    margin: 0;
    flex: 1;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.card-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    font-size: 18px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
}

.card-body {
    padding: 16px 20px;
    margin: 0;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.kpi-icon.primary {
    background: rgba(0, 102, 102, 0.1);
    color: var(--primary);
}

.kpi-icon.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.kpi-icon.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--secondary);
}

.kpi-icon.info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info);
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.kpi-trend.up {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.kpi-trend.down {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.kpi-title {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Detailed GSTR-1 Grid */
.gstr1-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.detail-item {
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 3px solid var(--primary-light);
    transition: var(--transition);
}

.detail-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    font-weight: 600;
}

.detail-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 0;
    padding: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table td,
.table th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--dark);
    vertical-align: middle;
}

.table th {
    background: var(--primary);
    color: var(--white);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table th:first-child {
    border-radius: var(--radius) 0 0 0;
}

.table th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

.table tr:hover td {
    background: var(--gray-100);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 15px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    font-size: 20px;
}

.d-mobile {
    display: none !important;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    color: var(--dark);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 102, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Filters Panel */
.filters-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary);
    color: var(--white);
}

.badge-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(0, 102, 102, 0.02);
}

.upload-icon {
    font-size: 48px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 15px;
    color: #475569;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 12px;
    color: var(--gray-400);
}

/* Comparison Card */
.comparison-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.comparison-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.9;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-label {
    opacity: 0.8;
    font-size: 13px;
}

.comparison-value {
    font-weight: 600;
    font-size: 14px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
}

.login-logo img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 13px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.text-muted {
    color: var(--gray-500);
}

.text-center {
    text-align: center;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-subtitle,
    .nav-section-title,
    .nav-link span,
    .sidebar-close {
        display: none;
    }

    .nav-link {
        justify-content: center;
        padding: 16px;
    }

    .main-content {
        margin-left: 80px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-logo {
        padding: 8px 5px;
        min-height: 40px;
    }

    .sidebar-logo img {
        max-height: 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        left: -260px;
        width: 260px;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-logo img,
    .sidebar-subtitle,
    .nav-section-title,
    .nav-link span {
        display: block;
    }

    .nav-link {
        justify-content: flex-start;
    }

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: var(--transition);
    }

    .sidebar-backdrop.active {
        display: block;
        opacity: 1;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .header {
        padding: 0 15px;
        height: 70px;
    }

    .sidebar-header {
        height: 70px;
    }

    .sidebar-logo img {
        max-height: 40px;
    }

    .sidebar-close {
        right: 10px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .d-mobile {
        display: flex !important;
    }

    .page-title {
        font-size: 18px;
    }

    .login-card {
        padding: 30px 20px;
    }

    .breadcrumb {
        display: none;
    }

    .content {
        padding: 12px;
    }

    .card-body {
        padding: 15px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* Stylish File Upload Area */
.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 102, 102, 0.02) 0%, rgba(0, 102, 102, 0.05) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.file-drop-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.file-drop-area:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 102, 0.15);
}

.file-drop-area:hover::before {
    opacity: 0.03;
}

.file-drop-area.dragover {
    border-color: var(--primary);
    border-style: solid;
    background: linear-gradient(135deg, rgba(0, 102, 102, 0.08) 0%, rgba(0, 102, 102, 0.12) 100%);
    transform: scale(1.02);
}

.file-drop-area .file-message {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.file-drop-area .file-message::before {
    content: '\F30A';
    font-family: 'bootstrap-icons';
    font-size: 42px;
    color: var(--primary);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.file-drop-area:hover .file-message::before {
    transform: translateY(-5px);
    opacity: 1;
}

.file-drop-area:hover .file-message {
    color: var(--primary);
}

.file-drop-area .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Different icon for attachment area */
#attachment-area .file-message::before {
    content: '\F3EB';
}

/* File selected state */
.file-drop-area.has-file {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05) 0%, rgba(39, 174, 96, 0.1) 100%);
}

.file-drop-area.has-file .file-message::before {
    content: '\F26D';
    color: var(--success);
}

.file-drop-area.has-file .file-message {
    color: var(--success);
    font-weight: 600;
}

/* Badge Secondary */
.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-500);
}

.badge-warning {
    background: rgba(241, 196, 15, 0.15);
    color: #d68910;
}

/* Template Download Buttons */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.template-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    gap: 8px;
}

.template-btn i {
    font-size: 28px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.template-btn:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 102, 102, 0.05) 0%, var(--white) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 102, 0.12);
}

.template-btn:hover i {
    transform: scale(1.1);
}

/* FINAL FONT ENFORCEMENT - MUST BE BOOK ANTIQUA */
*,
body,
html,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
td,
th,
input,
button,
select,
textarea,
label,
div,
i,
b,
strong,
em,
.page-title,
.breadcrumb,
.breadcrumb *,
.header,
.header *,
.sidebar,
.sidebar *,
.nav-link,
.nav-link * {
    font-family: "Book Antiqua", "Palatino Linotype", "Palatino", serif !important;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.mt-4 {
    margin-top: 24px !important;
}

/* OTP Input Styling */
.otp-input {
    text-align: center;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 8px !important;
    height: 60px !important;
}

.otp-input::placeholder {
    letter-spacing: normal !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    opacity: 0.6 !important;
}

/* Table Responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-responsive table {
    min-width: 600px;
}

/* Global Fix for Settings Alignment */
.form-group {
    transform: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.text-muted {
    color: #64748b !important;
    font-size: 12px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}


/* Legal Document Styling */
.legal-document {
    color: var(--dark);
    line-height: 1.6;
    padding: 20px;
}

.legal-document h1 {
    color: var(--primary);
    font-size: 24px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.legal-document h2 {
    color: var(--primary);
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}

.legal-document h3 {
    color: var(--primary-dark);
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-document p,
.legal-document li {
    margin-bottom: 10px;
    font-size: 14px;
}

.legal-document ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-document section {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legal-footer {
    margin-top: 50px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
    border-top: 3px solid var(--primary);
}

.legal-document .alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.legal-document .alert-warning {
    background: #fff8e1;
    border-color: #ffe082;
    color: #856404;
}

.legal-document .alert-info {
    background: #e3f2fd;
    border-color: #bbdefb;
    color: #0d47a1;
}

.legal-document .table {
    margin-top: 15px;
    margin-bottom: 15px;
    background: white;
}

.legal-document .table th {
    background: var(--primary);
    color: white;
}