/* Wells Portal Theme: Professional Modern Layout */
:root {
    --nav-bg: #0f172a;
    --nav-text: #ffffff;
    --bg-gray: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* Functional Colors */
    --orange-accent: #f97316; /* Zuper Data */
    --blue-accent: #3b82f6;   /* Database Data */
    --red-btn: #ef4444;       /* Logout/Danger */
    --primary-btn: #2563eb;   /* Search/Action */
    
    /* Container Colors */
    --zuper-light: #fffaf5;
    --db-light: #f5f9ff;
    
    /* Status Colors */
    --success-bg: #dcfce7;
    --success-text: #166534;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-gray);
    color: var(--text-main);
    line-height: 1.5;
}

/* --- NAVIGATION BAR --- */
.navbar {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 1rem 2rem;
    border-bottom: 1px solid #1e293b;
    width: 100%;
}

.nav-container-fluid {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff !important;
    margin-right: 3rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-links {
    flex-grow: 1;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

.btn-logout-red {
    background-color: var(--red-btn);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout-red:hover {
    background-color: #dc2626;
}

/* --- MAIN CONTENT LAYOUT --- */
.main-content-fluid {
    width: 100%;
    padding: 2rem;
}

.search-row-fluid {
    width: 100%;
    margin-bottom: 2rem;
}

.search-group {
    display: flex;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.search-group input {
    flex-grow: 1;
    padding: 18px 24px;
    border: 1px solid var(--border-color);
    border-right: none;
    font-size: 1.1rem;
    color: var(--text-main);
}

.search-group input:focus {
    outline: none;
    border-color: var(--blue-accent);
}

.search-group button {
    background-color: var(--primary-btn);
    color: white;
    border: none;
    padding: 0 35px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

/* --- STATS CARDS --- */
.stats-grid-fluid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-card label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 6px;
    color: var(--nav-bg);
}

/* --- DATA GRID --- */
.data-grid-fluid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    align-items: start;
}

.card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
}

.card-header h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

.card-body {
    padding: 24px;
    flex-grow: 1;
}

/* --- ZUPER & DB SPECIFIC --- */
.zuper-card { border-top: 5px solid var(--orange-accent); }
.db-card { border-top: 5px solid var(--blue-accent); }

.dot { width: 12px; height: 12px; border-radius: 50%; }
.orange { background-color: var(--orange-accent); }
.blue { background-color: var(--blue-accent); }

/* Internal Office Section (Blue Column) */
.internal-actions-box {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dbeafe;
}

/* Integrated Note Section at bottom of Blue Card */
.internal-note-entry {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.internal-note-entry h4 {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- FORM & INPUTS --- */
textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    margin-bottom: 12px;
    resize: vertical;
    display: block;
}

textarea:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    background-color: var(--primary-btn);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-primary.full-width {
    width: 100%;
}

select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

/* --- TABLES --- */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* --- STATUS BADGES --- */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.status-completed, .status-confirm { 
    background: var(--success-bg); 
    color: var(--success-text); 
}

.status-incomplete, .status-reject { 
    background: var(--danger-bg); 
    color: var(--danger-text); 
}

.status-not-applicable { 
    background: #f1f5f9; 
    color: #475569; 
}

/* --- NOTES & HISTORY --- */
.note-block {
    padding: 12px;
    background-color: #fff;
    border: 1px solid #edf2f7;
    margin-bottom: 12px;
    border-radius: 6px;
}

.note-block small {
    display: block;
    color: var(--blue-accent);
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.75rem;
}

.note-block p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- UTILITIES --- */
.hidden { display: none; }

.warning-box {
    background: #fff7ed;
    color: #9a3412;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #fdba74;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    margin-top: 8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1000px) {
    .data-grid-fluid {
        grid-template-columns: 1fr;
    }
}