/* NexusCRM Global Styles */
:root {
    --primary-green: #2ecc71; /* Main action color */
    --secondary-orange: #f39c12; /* Accent/Alert color */
    --bg-light: #f4f6f9;
    --text-dark: #2c3e50;
    --ash-placeholder: #a0aab5; /* Requested Ash Placeholder */
    --sidebar-bg: #1e2b3c;
    --white: #ffffff;
}

body { 
    margin: 0; 
    /* Bold, clean system fonts */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    font-weight: 500; 
    background: var(--bg-light); 
    color: var(--text-dark); 
}

h1, h2, h3, h4, h5, h6, strong { 
    font-weight: 700; /* Ensuring bold text emphasis */
    margin-top: 0;
}

.wrapper { 
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
}

/* --- Sidebar Styles --- */
.sidebar { 
    width: 250px; 
    background: var(--sidebar-bg); 
    color: var(--white); 
    display: flex; 
    flex-direction: column; 
}

.sidebar .brand { 
    padding: 20px; 
    font-size: 24px; 
    font-weight: 800; 
    background: #1a2433; 
    color: var(--primary-green); 
    text-align: center; 
    letter-spacing: 1px;
}

.sidebar .brand span { 
    color: var(--secondary-orange); 
}

.sidebar ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    overflow-y: auto; 
}

.sidebar li a { 
    display: block; 
    padding: 15px 20px; 
    color: #cbd5e1; 
    text-decoration: none; 
    font-weight: 600; 
    border-left: 4px solid transparent; 
    transition: all 0.3s ease; 
}

.sidebar li a:hover, .sidebar li a.active { 
    background: #2c3e50; 
    border-left-color: var(--primary-green); 
    color: var(--white); 
}

/* --- Main Content & Header --- */
.main-content { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
}

.header { 
    height: 60px; 
    background: var(--white); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 20px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    z-index: 10;
}

.content-area { 
    padding: 30px; 
    overflow-y: auto; 
    flex: 1; 
}

/* --- Form Styles --- */
.card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-control { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    font-size: 15px; 
    font-family: inherit; 
    font-weight: 500; 
    box-sizing: border-box; 
    transition: border-color 0.3s; 
}

.form-control:focus { 
    outline: none; 
    border-color: var(--primary-green); 
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* Ash Placeholders */
.form-control::placeholder { 
    color: var(--ash-placeholder); 
    opacity: 1; 
    font-weight: 400; 
}

/* --- Buttons --- */
.btn {
    padding: 10px 20px; 
    border-radius: 6px; 
    font-weight: 700; 
    cursor: pointer; 
    border: none;
    transition: background 0.3s; 
    font-size: 14px;
}

.btn-green { 
    background: var(--primary-green); 
    color: var(--white); 
}

.btn-green:hover { 
    background: #27ae60; 
}

.btn-orange { 
    background: var(--secondary-orange); 
    color: var(--white); 
}

.btn-orange:hover { 
    background: #d68910; 
}


/* --- Client Portal Specific Styles --- */
.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

/* =========================================
   PRINT PREVIEW STYLES (Hides Sidebar)
   ========================================= */
@media print {
    /* Hide the sidebar, top header, and all buttons */
    .sidebar, .top-header, .btn-light, .btn-dark, .btn-green, .action-links, .table-actions {
        display: none !important;
    }

    /* Expand the main content to fill the paper */
    .wrapper, .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* Remove background colors and shadows to save ink */
    body, .content-area {
        background-color: #ffffff !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}