/* Premium Government e-Office Theme */
:root {
    --primary-blue: #0b3d91; /* Deep Navy Blue */
    --accent-gold: #c6a256; /* Emblem Gold */
    --light-bg: #f4f6f9;
    --card-bg: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    margin: 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Navbar */
.gov-navbar {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gov-navbar .brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gov-navbar .brand img,
.header-logo img {
    height: 40px;
}

/* Sidebar */
.sidebar {
    background-color: white;
    width: 250px;
    height: calc(100vh - 72px);
    position: fixed;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.sidebar a {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar a:hover, .sidebar a.active {
    background-color: #ebf4ff;
    color: var(--primary-blue);
    border-right: 4px solid var(--accent-gold);
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 2rem;
}

/* Cards */
.gov-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn-gov {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-gov:hover {
    background-color: #082d6b;
}

.btn-gov-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

/* Tables */
.gov-table {
    width: 100%;
    border-collapse: collapse;
}

.gov-table th, .gov-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.gov-table th {
    background-color: #f8fafc;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.gov-table tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-blue { background-color: #ebf4ff; color: #1e40af; }
.badge-green { background-color: #def7ec; color: #03543f; }
.badge-red { background-color: #fde8e8; color: #9b1c1c; }
.badge-gold { background-color: #fdf6b2; color: #723b13; }

/* Form Elements */
.gov-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gov-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

.gov-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Green Sheet Specifics */
.split-layout {
    display: flex;
    height: calc(100vh - 130px); /* minus navbar and padding */
    gap: 1.5rem;
}
.split-left {
    flex: 1;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.split-right {
    flex: 1;
    background: #f0fdf4; /* Light Green background */
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.pdf-viewer-container {
    flex: 1;
    background: #525659; /* Standard PDF background */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
}

.noting-history {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.note-item {
    background: #ffffff;
    border: 1px solid #dcfce7;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.note-item.yellow-note {
    background: #fef08a;
    border-color: #fde047;
}

.note-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.note-editor-box {
    background: #fff;
    border-top: 1px solid #bbf7d0;
    padding: 1rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Utilities */
.show {
    display: block !important;
}
