/* ==========================================
   CSS STYLING: Bali Injeksi Beton & Waterproofing
   Theme: Premium Dark Mode & Glassmorphism
   ========================================== */

/* Variables */
:root {
    --bg-app: #070a13;
    --bg-sidebar: #0d1222;
    --bg-card: rgba(20, 29, 56, 0.65);
    --border-color: rgba(255, 255, 255, 0.07);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary-orange: #f59e0b; /* Aksen Beton/Konstruksi */
    --primary-orange-hover: #d97706;
    --primary-blue: #38bdf8; /* Aksen Waterproofing/Air */
    --primary-blue-hover: #0ea5e9;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #f43f5e;
    
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

body.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.18), transparent 32%),
        linear-gradient(135deg, #070a13 0%, #0d1222 55%, #111827 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
}

.auth-panel {
    padding: 40px;
}

.auth-panel.brand {
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.16), rgba(56, 189, 248, 0.12));
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.18);
}

.auth-brand-copy h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 18px 0 10px;
}

.auth-brand-copy p,
.auth-feature-list li,
.auth-hint,
.auth-error {
    color: var(--text-secondary);
}

.auth-feature-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.auth-feature-list li {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.auth-feature-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.auth-panel.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.auth-panel.form h2 {
    font-size: 28px;
}

.auth-panel.form form {
    display: grid;
    gap: 16px;
}

.auth-error {
    min-height: 24px;
    font-size: 14px;
}

.auth-actions {
    display: grid;
    gap: 10px;
}

.auth-demo-box {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.08);
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-demo-box strong {
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding: 28px;
    }

    .auth-panel.brand {
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.brand-text h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.2;
}

.brand-text span {
    font-size: 11px;
    color: var(--primary-blue);
    font-weight: 500;
}

.sidebar-menu {
    flex: 1;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
}

.menu-item i {
    width: 20px;
    height: 20px;
}

.menu-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.03);
}

.menu-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.15) 0%, rgba(56, 189, 248, 0.01) 100%);
    border-left: 3px solid var(--primary-blue);
    padding-left: 13px;
}

.sidebar-profile {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.15);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}

.profile-info h4 {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.profile-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.topbar {
    height: 70px;
    background-color: rgba(7, 10, 19, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

#current-page-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-speed);
}

.notification-bell:hover {
    color: #fff;
}

.notification-bell .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-app);
}

.notification-dropdown {
    position: absolute;
    top: 35px;
    right: -10px;
    width: 320px;
    background-color: #12182b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none;
    overflow: hidden;
}

.notification-bell:hover .notification-dropdown {
    display: block;
}

.dropdown-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
}

.dropdown-items {
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background-color var(--transition-speed);
}

.dropdown-item:hover {
    background-color: rgba(255,255,255,0.02);
}

.item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-icon.warning { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); }
.item-icon.success { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.item-icon.info { background-color: rgba(56, 189, 248, 0.15); color: var(--primary-blue); }

.item-icon i { width: 16px; height: 16px; }

.item-text p {
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-text span {
    font-size: 10px;
    color: var(--text-muted);
}

.current-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.current-date i {
    width: 14px;
    height: 14px;
    color: var(--primary-blue);
}

/* Content Body */
.content-body {
    flex: 1;
    padding: 32px;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glass Panels */
.glass-panel {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.stat-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon i {
    width: 24px;
    height: 24px;
}

.stat-icon.orange {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--primary-orange);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-icon.blue {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.stat-icon.green {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-icon.red {
    background-color: rgba(244, 63, 94, 0.1);
    color: var(--danger);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.stat-details h3 {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    font-family: var(--font-head);
}

.stat-change {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive { color: var(--success); }
.stat-change.neutral { color: var(--text-muted); }
.stat-change i { width: 12px; height: 12px; }

/* Dashboard Charts Grid */
.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

/* Dashboard Tables & Timeline Grid */
.dashboard-tables {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-tables {
        grid-template-columns: 1fr;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.btn-link {
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-link:hover {
    color: #fff;
}

.btn-link i {
    width: 14px;
    height: 14px;
}

/* Timeline Layout */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
    position: relative;
}

.activity-item::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 10px;
    bottom: -20px;
    width: 1px;
    background-color: var(--border-color);
}

.activity-item:last-child::after {
    display: none;
}

.activity-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.activity-badge i { width: 11px; height: 11px; color: #fff; }
.activity-badge.blue { background-color: var(--primary-blue); }
.activity-badge.orange { background-color: var(--primary-orange); }
.activity-badge.green { background-color: var(--success); }

.activity-details {
    flex: 1;
}

.activity-desc {
    font-size: 12px;
    color: var(--text-primary);
}

.activity-time {
    font-size: 10px;
    color: var(--text-muted);
}

/* Table Design */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

thead th {
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

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

.badge-status.draft { background-color: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.badge-status.terkirim { background-color: rgba(56, 189, 248, 0.15); color: var(--primary-blue); }
.badge-status.negosiasi { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-status.diterima { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-status.ditolak { background-color: rgba(244, 63, 94, 0.15); color: var(--danger); }
.badge-status.kedaluwarsa { background-color: rgba(148, 163, 184, 0.1); color: var(--text-muted); }

.badge-status.belum-mulai { background-color: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.badge-status.berjalan { background-color: rgba(56, 189, 248, 0.15); color: var(--primary-blue); }
.badge-status.selesai { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-status.ditutup { background-color: rgba(244, 63, 94, 0.15); color: var(--danger); }

.badge-status.belum-dibayar { background-color: rgba(244, 63, 94, 0.15); color: var(--danger); }
.badge-status.sebagian { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-status.lunas { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-status.terlambat { background-color: rgba(244, 63, 94, 0.3); color: var(--danger); }

.badge-status.menunggu-verifikasi { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-status.terverifikasi { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }

/* Progress Bar */
.progress-container {
    width: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar-bg {
    width: 60px;
    height: 6px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--success) 100%);
    border-radius: 3px;
}

/* Action Header */
.action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 16px;
    height: 16px;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 13px;
    transition: border-color var(--transition-speed);
}

.search-box input:focus {
    border-color: var(--primary-blue);
}

.filter-group select {
    padding: 10px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 13px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-success {
    background-color: var(--success);
    color: #fff;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: #e11d48;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

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

.btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text-secondary);
}

.btn-icon:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

.btn-icon i {
    width: 14px;
    height: 14px;
}

.action-buttons {
    display: flex;
    gap: 6px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-lg {
    max-width: 900px;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.modal-header h3 {
    font-size: 18px;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-speed);
}

.close-btn:hover {
    color: #fff;
}

/* Form Styling */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 10px 12px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 13px;
    font-family: var(--font-body);
    transition: border-color var(--transition-speed);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-blue);
}

select option {
    background-color: #0d1222;
    color: var(--text-primary);
}

select {
    background-color: #12182b;
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    outline: none;
    font-family: var(--font-body);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.readonly-input {
    background-color: rgba(255,255,255,0.01) !important;
    color: var(--text-secondary) !important;
    border-style: dashed !important;
    cursor: not-allowed;
}

.form-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.mt-4 { margin-top: 24px; }
.mt-2 { margin-top: 12px; }
.d-none { display: none !important; }

/* Dynamic Quotation Form Table & Calculations */
.items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.items-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.items-table th {
    padding: 8px 12px;
    font-size: 11px;
}

.items-table td {
    padding: 8px;
}

.items-table input,
.items-table select {
    width: 100%;
    padding: 6px 10px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
}

.totals-calculation {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    align-items: center;
}

.calculation-row span:first-child {
    color: var(--text-secondary);
}

.calculation-row input {
    width: 120px;
    padding: 4px 8px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    text-align: right;
    font-size: 12px;
}

.total-row {
    font-weight: 700;
    font-size: 15px;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    color: var(--primary-orange);
}

/* File Upload UI Box */
.file-upload-box {
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    transition: border-color var(--transition-speed), background-color var(--transition-speed);
}

.file-upload-box:hover {
    border-color: var(--primary-blue);
    background-color: rgba(56, 189, 248, 0.02);
}

.file-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-box i {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.file-upload-box span {
    font-size: 12px;
}

.image-preview-container {
    margin-top: 10px;
    border-radius: 6px;
    overflow: hidden;
    max-height: 150px;
    border: 1px solid var(--border-color);
    text-align: center;
    background-color: #000;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

/* Project Detail Grid Layout */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

.proj-info-panel {
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

@media (max-width: 768px) {
    .proj-info-panel {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
    }
}

.proj-info-panel h4,
.proj-logs-panel h4 {
    font-size: 14px;
    margin-bottom: 14px;
    color: #fff;
    border-left: 3px solid var(--primary-blue);
    padding-left: 8px;
}

.info-row {
    margin-bottom: 10px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

.info-row strong {
    color: var(--text-secondary);
}

.progress-section label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.inline-form {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.logs-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.log-item {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 10px;
}

.log-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.log-item-desc {
    font-size: 12px;
    color: var(--text-primary);
}

.log-item-photo {
    margin-top: 8px;
    max-width: 120px;
    border-radius: 4px;
    cursor: pointer;
}

/* Verification details modal */
.verification-details p {
    font-size: 13px;
    margin-bottom: 8px;
}

.verification-details p strong {
    color: var(--text-secondary);
    display: inline-block;
    width: 150px;
}

.proof-image-container {
    width: 100%;
    max-height: 250px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-align: center;
    background-color: #000;
    margin-top: 12px;
}

.proof-image-container img {
    max-height: 250px;
    max-width: 100%;
    object-fit: contain;
}

/* Billing Subtabs header */
.billing-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

.tab-button {
    background: none;
    border: none;
    outline: none;
    padding: 12px 6px;
    color: var(--text-secondary);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button i {
    width: 16px;
    height: 16px;
}

.tab-button.active {
    color: #fff;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-blue);
}

.billing-tab-content {
    display: none;
}

.billing-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ==========================================
   OFFICIAL PDF PRINT STYLES SIMULATOR
   ========================================== */
.pdf-preview-modal .modal-content {
    background-color: #1a2236;
    border-color: #2b3652;
}

.pdf-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.simulated-paper-wrapper {
    background-color: #0a0d17;
    padding: 24px;
    border-radius: 8px;
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.03);
}

.simulated-paper {
    background-color: #ffffff;
    color: #1e293b;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 1.4;
}

.pdf-kop {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.pdf-kop-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d97706, #0284c7);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.pdf-kop-text h2 {
    font-size: 18px;
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
}

.pdf-kop-text p {
    font-size: 9px;
    color: #475569;
}

.pdf-doc-title {
    text-align: center;
    margin-bottom: 20px;
}

.pdf-doc-title h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f172a;
    margin-bottom: 4px;
}

.pdf-doc-title p {
    font-size: 10px;
    color: #64748b;
}

.pdf-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.pdf-info-block p {
    margin-bottom: 4px;
}

.pdf-info-block strong {
    color: #0f172a;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pdf-table th {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    font-size: 10px;
    text-align: left;
}

.pdf-table td {
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    color: #334155;
}

.pdf-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.pdf-table-totals {
    width: 250px;
    margin-left: auto;
    margin-bottom: 20px;
}

.pdf-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.pdf-totals-row.grand-total {
    border-top: 1px solid #94a3b8;
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
    padding-top: 8px;
}

.pdf-sign-area {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 0 20px;
}

.pdf-sign-box {
    text-align: center;
    width: 200px;
}

.pdf-signature-space {
    height: 60px;
    position: relative;
}

.pdf-stamp {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    width: 65px;
    height: 65px;
    border: 2px dashed rgba(2, 132, 199, 0.4);
    border-radius: 50%;
    color: rgba(2, 132, 199, 0.4);
    font-weight: 800;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.pdf-sign-name {
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #1e293b;
    display: inline-block;
    padding-bottom: 2px;
}
