/* =============================================
   LANTING DIGITAL - CLIENT PORTAL
   Polished, Professional Client Experience
   ============================================= */

:root {
    --bg-app: #f8f9fa;
    --bg-panel: #ffffff;
    --bg-hover: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --accent-gold: #b45309;
    --accent-gold-light: #fffbeb;
    --accent-gold-hover: #92400e;

    --success: #059669;
    --success-bg: #dcfce7;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --info: #0284c7;
    --info-bg: #e0f2fe;

    --border: #e5e7eb;
    --border-dark: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* =============================================
   PORTAL LAYOUT
   ============================================= */
.portal-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.portal-sidebar {
    width: 280px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.sidebar-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-gold);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.nav-badge.success {
    background: var(--success);
}

.nav-badge.warning {
    background: var(--warning);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-hover);
    border-radius: var(--radius);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.btn-logout:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Main Content Area */
.portal-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

.portal-header {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-content {
    padding: 32px;
}

/* Portal Views */
.portal-view {
    display: none;
}

.portal-view.active {
    display: block;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--accent-gold);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-app);
}

/* =============================================
   DASHBOARD WIDGETS
   ============================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon.gold {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
}

.stat-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.blue {
    background: var(--info-bg);
    color: var(--info);
}

.stat-icon.orange {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-change {
    font-size: 0.75rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* =============================================
   ACTIVITY FEED
   ============================================= */
.activity-feed {
    list-style: none;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.activity-icon.contract {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
}

.activity-icon.message {
    background: var(--info-bg);
    color: var(--info);
}

.activity-icon.invoice {
    background: var(--success-bg);
    color: var(--success);
}

.activity-icon.payment {
    background: var(--success-bg);
    color: var(--success);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-text strong {
    font-weight: 600;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =============================================
   CONTRACTS LIST
   ============================================= */
.contracts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contract-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contract-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow);
}

.contract-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--bg-app);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.contract-card.signed .contract-icon {
    background: var(--success-bg);
    color: var(--success);
}

.contract-card.pending .contract-icon {
    background: var(--warning-bg);
    color: var(--warning);
}

.contract-info {
    flex: 1;
    min-width: 0;
}

.contract-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contract-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 16px;
}

.contract-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contract-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.signed {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge.pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-badge.sent {
    background: var(--info-bg);
    color: var(--info);
}

.contract-actions {
    display: flex;
    gap: 8px;
}

/* =============================================
   INVOICES LIST
   ============================================= */
.invoices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
}

.invoice-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow);
}

.invoice-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.invoice-card.paid .invoice-icon {
    background: var(--success-bg);
    color: var(--success);
}

.invoice-card.pending .invoice-icon {
    background: var(--warning-bg);
    color: var(--warning);
}

.invoice-card.overdue .invoice-icon {
    background: var(--danger-bg);
    color: var(--danger);
}

.invoice-info {
    flex: 1;
    min-width: 0;
}

.invoice-number {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.invoice-description {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.invoice-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.invoice-amount {
    text-align: right;
    flex-shrink: 0;
}

.amount-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.amount-status {
    font-size: 0.75rem;
    margin-top: 4px;
}

.amount-status.paid {
    color: var(--success);
}

.amount-status.pending {
    color: var(--warning);
}

.amount-status.overdue {
    color: var(--danger);
}

.invoice-actions {
    flex-shrink: 0;
}

/* =============================================
   MESSAGES
   ============================================= */
.messages-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.messages-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.messages-recipient {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recipient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.recipient-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.recipient-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.sent .message-bubble {
    background: var(--accent-gold);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received .message-bubble {
    background: var(--bg-app);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    padding: 0 4px;
}

.message.sent .message-time {
    text-align: right;
}

.messages-input {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    background: var(--bg-app);
}

.messages-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-panel);
    transition: all 0.15s ease;
}

.messages-input input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-light);
}

.messages-input button {
    padding: 12px 20px;
    background: var(--accent-gold);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.messages-input button:hover {
    background: var(--accent-gold-hover);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
}

.btn-secondary {
    background: var(--bg-panel);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #047857;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* =============================================
   EMPTY STATES
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 40px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-app);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--text-muted);
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 24px;
}

/* =============================================
   LOADING STATES
   ============================================= */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   CONTRACT DETAIL VIEW
   ============================================= */
.contract-detail {
    max-width: 900px;
    margin: 0 auto;
}

.contract-document {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    font-family: 'Georgia', serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #333;
}

.contract-document h1 {
    text-align: center;
    font-size: 18pt;
    font-weight: bold;
    margin-bottom: 8px;
}

.contract-document h2 {
    font-size: 12pt;
    font-weight: bold;
    margin: 24px 0 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ccc;
}

.contract-document p {
    margin-bottom: 12px;
    text-align: justify;
}

.contract-document table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.contract-document th,
.contract-document td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
    font-size: 10pt;
}

.contract-document th {
    background: #f5f5f5;
    font-weight: bold;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .portal-sidebar {
        width: 240px;
    }

    .portal-main {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .portal-container {
        flex-direction: column;
    }

    .portal-sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .portal-sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .portal-main {
        margin-left: 0;
    }

    .portal-header {
        padding: 16px 20px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--text-primary);
        cursor: pointer;
        margin-right: 12px;
    }

    .portal-content {
        padding: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .contract-card {
        flex-wrap: wrap;
    }

    .contract-actions {
        width: 100%;
        margin-top: 12px;
        justify-content: flex-end;
    }

    .invoice-card {
        flex-wrap: wrap;
    }

    .invoice-amount {
        width: 100%;
        text-align: left;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .messages-container {
        height: calc(100vh - 120px);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .message {
        max-width: 85%;
    }

    .contract-document {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .contract-card {
        padding: 16px;
    }

    .contract-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contract-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .btn {
        padding: 10px 16px;
    }

    .messages-input {
        padding: 12px 16px;
    }

    .messages-input input {
        padding: 10px 12px;
    }

    .contract-document {
        padding: 16px;
        font-size: 10pt;
    }
}

/* =============================================
   UTILITIES
   ============================================= */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* Desktop menu button hidden */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* =============================================
   LOGIN / ACCESS DENIED / LOADING SCREENS
   ============================================= */
.portal-login,
.portal-loading,
.portal-access-denied {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.portal-login.active,
.portal-loading.active,
.portal-access-denied.active {
    display: flex;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    margin-bottom: 32px;
}

.login-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.login-logo .logo-tagline {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 4px;
}

.login-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-content > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: var(--text-secondary);
}

.btn-google i {
    font-size: 1.1rem;
    color: #4285f4;
}

.login-note {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Loading Screen */
.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.loading-content .spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-gold);
    margin: 0 auto 16px;
}

.loading-content p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Access Denied Card */
.access-denied-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.access-denied-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--warning-bg);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}

.access-denied-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.access-denied-card > p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.access-denied-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.access-denied-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =============================================
   QUICK ACTIONS
   ============================================= */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: var(--bg-panel);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-action-btn i {
    font-size: 1.5rem;
}

.quick-action-btn span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* =============================================
   MESSAGES EMPTY STATE
   ============================================= */
.messages-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 40px;
}

.messages-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.messages-empty p {
    font-size: 0.95rem;
}

/* =============================================
   CONTRACT DETAIL HEADER
   ============================================= */
.contract-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* =============================================
   RESPONSIVE ADDITIONS
   ============================================= */
@media (max-width: 480px) {
    .login-card,
    .access-denied-card {
        padding: 32px 24px;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-action-btn {
        padding: 20px 12px;
    }

    .quick-action-btn i {
        font-size: 1.25rem;
    }

    .access-denied-actions {
        gap: 8px;
    }

    .access-denied-actions .btn {
        width: 100%;
    }
}
