/* Generated by Cursor AI and reviewed by Victor Jason-Nwachukwu */

/* ============================================
   ASA Policy App - Admin Panel Styles
   ============================================ */

/* CSS Variables */
:root {
    --asa-red: #DC143C;
    --asa-red-dark: #B71C1C;
    --asa-red-light: #FF6B6B;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-grey: #E0E0E0;
    --border-color: #DDDDDD;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --sidebar-width: 250px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* ============================================
   Login Page Styles
   ============================================ */

.login-page {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.back-to-public-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: var(--bg-white);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    z-index: 10;
}

.back-to-public-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--asa-red);
    color: var(--asa-red);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    text-align: center;
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.login-card h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--bg-white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--asa-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

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

/* Quill Rich Text Editor Styles */
.form-group .ql-container {
    font-family: inherit;
    font-size: 14px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.form-group .ql-toolbar {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.form-group .ql-editor {
    min-height: 350px;
    color: var(--text-primary);
}

.form-group .ql-editor.ql-blank::before {
    color: var(--text-light);
    font-style: normal;
}

.form-group .ql-container:focus-within {
    border-color: var(--asa-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-group .ql-toolbar.ql-snow {
    border-color: var(--border-color);
}

.form-group .ql-toolbar.ql-snow .ql-stroke {
    stroke: var(--text-secondary);
}

.form-group .ql-toolbar.ql-snow .ql-fill {
    fill: var(--text-secondary);
}

.form-group .ql-toolbar.ql-snow .ql-picker-label {
    color: var(--text-secondary);
}

.form-group .ql-toolbar.ql-snow button:hover,
.form-group .ql-toolbar.ql-snow button.ql-active,
.form-group .ql-toolbar.ql-snow .ql-picker-label:hover,
.form-group .ql-toolbar.ql-snow .ql-picker-item:hover {
    color: var(--asa-red);
}

.form-group .ql-toolbar.ql-snow button:hover .ql-stroke,
.form-group .ql-toolbar.ql-snow button.ql-active .ql-stroke,
.form-group .ql-toolbar.ql-snow .ql-picker-label:hover .ql-stroke,
.form-group .ql-toolbar.ql-snow .ql-picker-item:hover .ql-stroke {
    stroke: var(--asa-red);
}

.form-group .ql-toolbar.ql-snow button:hover .ql-fill,
.form-group .ql-toolbar.ql-snow button.ql-active .ql-fill,
.form-group .ql-toolbar.ql-snow .ql-picker-label:hover .ql-fill,
.form-group .ql-toolbar.ql-snow .ql-picker-item:hover .ql-fill {
    fill: var(--asa-red);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--asa-red);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--asa-red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--bg-grey);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #D0D0D0;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--asa-red);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ============================================
   Admin Layout Styles
   ============================================ */

.admin-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.admin-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

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

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    width: 300px;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--asa-red);
}

.user-menu {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-light);
    font-size: 20px;
}

.user-menu:hover {
    background-color: var(--bg-grey);
}

/* Profile Panel */
.profile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
}

.profile-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.profile-panel-content {
    position: relative;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background-color: var(--bg-white);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    margin-left: auto;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.profile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.profile-panel-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.profile-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.profile-close-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.profile-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.profile-picture-section {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.profile-picture-container {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-light);
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initials {
    font-size: 48px;
    font-weight: 600;
    color: var(--asa-red);
    text-transform: uppercase;
}

.profile-picture-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-picture-container:hover .profile-picture-label {
    opacity: 1;
}

.upload-icon {
    font-size: 16px;
}

.profile-info {
    margin-bottom: 32px;
}

.profile-field {
    margin-bottom: 20px;
}

.profile-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.profile-value {
    font-size: 16px;
    color: var(--text-primary);
    padding: 12px 16px;
    background-color: var(--bg-light);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.profile-actions {
    margin-top: 24px;
}

.btn-block {
    width: 100%;
}

/* Layout Container */
.admin-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    overflow-y: auto;
    height: calc(100vh - 73px);
}

.nav-item {
    padding: 14px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: rgba(220, 20, 60, 0.1);
    color: var(--asa-red);
    border-left-color: var(--asa-red);
}

/* Main Content */
.admin-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background-color: var(--bg-light);
    height: calc(100vh - 73px);
}

.page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

/* ============================================
   Dashboard Styles
   ============================================ */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--asa-red);
}

.stat-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   Policies List Styles
   ============================================ */

.policies-list {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.policy-section {
    margin-bottom: 32px;
}

.policy-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background-color 0.3s;
}

.policy-section-header:hover {
    background-color: var(--bg-grey);
}

.policy-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.policy-section-toggle {
    font-size: 20px;
    color: var(--text-light);
    transition: transform 0.3s;
}

.policy-section.expanded .policy-section-toggle {
    transform: rotate(180deg);
}

.policy-items {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
    transition: opacity 0.3s ease;
}

.policy-section.expanded .policy-items {
    display: grid;
    animation: fadeIn 0.3s ease;
}

.policy-section:not(.expanded) .policy-items {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.policy-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

.policy-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.policy-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.policy-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    flex: 1;
}

.policy-item-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: var(--bg-grey);
}

.action-btn.view {
    color: #2196F3;
}

.action-btn.edit {
    color: var(--asa-red);
}

.action-btn.delete {
    color: #F44336;
}

.policy-item-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

.policy-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
}

.policy-status.pending {
    background-color: #FFF3CD;
    color: #856404;
}

.policy-status.approved {
    background-color: #D4EDDA;
    color: #155724;
}

.policy-status.draft {
    background-color: var(--bg-grey);
    color: var(--text-secondary);
}

.policy-status.disapproved {
    background-color: #FFEBEE;
    color: #C62828;
}

/* ============================================
   Policy Form Styles
   ============================================ */

.policy-form {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 900px;
}

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

.form-actions .btn {
    width: auto;
    min-width: 150px;
}

/* ============================================
   Bylaws List Styles
   ============================================ */

.bylaws-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.bylaw-item {
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

.bylaw-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.bylaw-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.bylaw-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 18px;
}

.bylaw-item-actions {
    display: flex;
    gap: 8px;
}

.bylaw-item-content {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   Suggestions List Styles
   ============================================ */

.suggestions-list {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.suggestion-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--bg-light);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.suggestion-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-policy {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.suggestion-date {
    font-size: 12px;
    color: var(--text-light);
}

.suggestion-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 12px;
    white-space: pre-wrap;
}

.suggestion-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* ============================================
   Approval Workflow Styles
   ============================================ */

.approval-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 24px;
}

.approval-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.btn-approve {
    background-color: #4CAF50;
    color: white;
}

.btn-approve:hover {
    background-color: #45a049;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--asa-red);
    }

    .header-actions {
        gap: 12px;
    }

    .search-bar input {
        width: 200px;
    }

    .admin-main {
        padding: 20px;
    }

    /* Page header already stacks vertically on all screen sizes */

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .policy-items {
        grid-template-columns: 1fr;
    }

    .bylaws-list {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .policy-view-meta {
        grid-template-columns: 1fr;
    }

    .policy-view-dates {
        flex-direction: column;
        gap: 12px;
    }

    .view-actions {
        flex-direction: column;
    }

    .view-actions .btn {
        width: 100%;
    }

    .policy-view-header,
    .policy-view-content,
    .policy-view-footer {
        padding: 20px;
    }

    .approvals-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }

    .tab-btn.active {
        border-left-color: var(--asa-red);
        border-bottom-color: var(--border-color);
    }

    .approval-item-header {
        flex-direction: column;
    }

    .approval-item-actions {
        width: 100%;
        margin-top: 12px;
    }

    .approval-item-footer {
        flex-direction: column;
    }

    .approval-item-footer .btn {
        width: 100%;
    }

    .approval-item-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px;
    }

    .search-bar input {
        width: 150px;
        font-size: 12px;
    }

    .policy-form {
        padding: 20px;
    }
}

/* ============================================
   Policy/Bylaw View Page Styles
   ============================================ */

.policy-view-container {
    max-width: 1000px;
}

.policy-view-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.policy-view-header {
    padding: 24px 32px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.policy-view-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.policy-view-meta > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.policy-view-meta strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
}

.policy-view-meta span {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.policy-view-content {
    padding: 32px;
    min-height: 200px;
}

.policy-view-content > div {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    word-wrap: break-word;
}

/* Styles for HTML content from Quill editor */
.policy-view-content > div p,
.bylaw-view-content > div p {
    margin-bottom: 1em;
}

.policy-view-content > div h1,
.bylaw-view-content > div h1 {
    font-size: 2em;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

.policy-view-content > div h2,
.bylaw-view-content > div h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 0.8em;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

.policy-view-content > div h3,
.bylaw-view-content > div h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 0.6em;
    margin-bottom: 0.4em;
    color: var(--text-primary);
}

.policy-view-content > div strong,
.bylaw-view-content > div strong {
    font-weight: 600;
    color: var(--text-primary);
}

.policy-view-content > div ul,
.policy-view-content > div ol,
.bylaw-view-content > div ul,
.bylaw-view-content > div ol {
    margin: 1em 0;
    padding-left: 2em;
}

.policy-view-content > div blockquote,
.bylaw-view-content > div blockquote {
    border-left: 4px solid var(--asa-red);
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: var(--text-light);
}

.policy-view-content > div code,
.bylaw-view-content > div code {
    background-color: var(--bg-light);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.policy-view-content > div br,
.bylaw-view-content > div br {
    line-height: 2;
}

.policy-view-footer {
    padding: 20px 32px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.policy-view-dates {
    display: flex;
    gap: 32px;
    font-size: 14px;
    color: var(--text-light);
}

.policy-view-dates strong {
    margin-right: 8px;
    color: var(--text-secondary);
}

.view-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.view-actions .btn {
    width: auto;
    min-width: 120px;
}

/* ============================================
   Approvals Page Styles
   ============================================ */

.approvals-container {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.approvals-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-light);
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
}

.tab-btn:hover {
    background-color: rgba(220, 20, 60, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--asa-red);
    border-bottom-color: var(--asa-red);
    background-color: var(--bg-white);
}

.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

.approvals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.approval-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s;
}

.approval-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--asa-red);
}

.approval-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.approval-item-info {
    flex: 1;
}

.approval-item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.approval-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--text-light);
}

.approval-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.approval-item-id {
    font-weight: 600;
    color: var(--text-secondary);
}

.approval-item-section {
    padding: 4px 12px;
    background-color: rgba(220, 20, 60, 0.1);
    border-radius: 12px;
    color: var(--asa-red);
    font-weight: 500;
}

.approval-item-date {
    color: var(--text-light);
}

.approval-item-actions {
    display: flex;
    gap: 8px;
}

.approval-item-content {
    margin-bottom: 20px;
    padding: 16px;
    background-color: var(--bg-white);
    border-radius: 6px;
    border-left: 3px solid var(--asa-red);
}

.approval-item-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.approval-item-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-view {
    background-color: #2196F3;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-view:hover {
    background-color: #1976D2;
}

.btn-approve {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    min-width: 120px;
}

.btn-approve:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-disapprove {
    background-color: #F44336;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    min-width: 120px;
}

.btn-disapprove:hover {
    background-color: #D32F2F;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* ============================================
   Policy Review Section Styles
   ============================================ */

.policy-review-section {
    padding: 24px 32px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    margin-top: 24px;
}

.policy-review-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.review-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.review-form {
    margin-top: 16px;
}

.review-options {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.review-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s;
    background-color: var(--bg-white);
}

.review-option:hover {
    border-color: var(--asa-red);
    background-color: rgba(220, 20, 60, 0.05);
}

.review-option input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--asa-red);
}

.review-option input[type="radio"]:checked + .radio-label {
    color: var(--asa-red);
    font-weight: 600;
}

.review-option:has(input[type="radio"]:checked) {
    border-color: var(--asa-red);
    background-color: rgba(220, 20, 60, 0.1);
}

.radio-label {
    font-size: 16px;
    color: var(--text-primary);
    cursor: pointer;
}

.review-actions {
    margin-top: 16px;
}

.review-status-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}

.review-status-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.review-status-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* ============================================
   Master Dashboard Styles
   ============================================ */

.master-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.admin-members-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.section-header .btn {
    align-self: flex-start;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.member-form {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.member-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.members-list {
    margin-top: 24px;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 6px;
    overflow: hidden;
}

.members-table thead {
    background: var(--bg-light);
}

.members-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.members-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.members-table tr:last-child td {
    border-bottom: none;
}

.members-table tr:hover {
    background: var(--bg-light);
}

.members-table code {
    background: var(--bg-grey);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--asa-red);
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background-color: #E3F2FD;
    color: #1976D2;
}

.role-badge.policy_working_group {
    background-color: #F3E5F5;
    color: #7B1FA2;
}

.role-select {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.role-select:hover {
    border-color: var(--asa-red);
    box-shadow: var(--shadow);
}

.role-select.public {
    background-color: var(--bg-grey);
    color: var(--text-secondary);
}

.role-select.admin {
    background-color: #E3F2FD;
    color: #1976D2;
    border-color: #90CAF9;
}

.role-select.policy_working_group {
    background-color: #F3E5F5;
    color: #7B1FA2;
    border-color: #CE93D8;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    margin-right: 8px;
}

.btn-danger {
    background-color: #DC143C;
    color: white;
}

.btn-danger:hover {
    background-color: var(--asa-red-dark);
}

.hidden {
    display: none !important;
}

.readonly-input {
    background-color: var(--bg-grey) !important;
    cursor: not-allowed;
}

.review-summary-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.review-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.review-summary-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.review-summary-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.review-summary-filters {
    margin-bottom: 24px;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--asa-red);
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.review-table thead {
    background-color: var(--bg-light);
}

.review-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.review-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.review-table tbody tr:hover {
    background-color: var(--bg-light);
}

.review-table tbody tr:last-child td {
    border-bottom: none;
}

.confirmed-count {
    color: #4CAF50;
    font-weight: 600;
}

.needs-work-count {
    color: #F44336;
    font-weight: 600;
}

.policy-link {
    color: var(--asa-red);
    text-decoration: none;
    font-weight: 500;
}

.policy-link:hover {
    text-decoration: underline;
}

.review-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.review-status-badge.pending {
    background-color: var(--bg-grey);
    color: var(--text-secondary);
}

.review-status-badge.all-confirmed {
    background-color: #D4EDDA;
    color: #155724;
}

.review-status-badge.all-needs-work {
    background-color: #F8D7DA;
    color: #721C24;
}

.review-status-badge.mixed {
    background-color: #FFF3CD;
    color: #856404;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Reviewers Display Styles */
.reviewers-cell {
    max-width: 400px;
    font-size: 13px;
}

.reviewers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reviewer-group {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.reviewer-group.confirmed {
    background-color: #E8F5E9;
    border-left: 3px solid #4CAF50;
}

.reviewer-group.needs-work {
    background-color: #FFEBEE;
    border-left: 3px solid #F44336;
}

.reviewer-group strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reviewer-email {
    display: inline-block;
    margin-right: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.no-reviews {
    color: var(--text-light);
    font-style: italic;
    font-size: 12px;
}

/* Notification Styles */
.notification {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.notification.hidden {
    display: none;
}

.notification.error {
    background-color: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #F44336;
}

.notification.success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #4CAF50;
}

.notification.info {
    background-color: #E3F2FD;
    color: #1565C0;
    border-left: 4px solid #2196F3;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Master Dashboard Link in Sidebar */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.master-dashboard-link {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    text-decoration: underline;
    color: var(--text-light);
    opacity: 0.7;
    font-weight: normal;
}

.master-dashboard-link:hover {
    opacity: 1;
    color: var(--asa-red);
}

.master-dashboard-link.active {
    color: var(--asa-red);
    opacity: 1;
    text-decoration: underline;
}

.public-view-link {
    margin-top: 0;
    padding-top: 12px;
    font-size: 12px;
    text-decoration: underline;
    color: var(--text-light);
    opacity: 0.7;
    font-weight: normal;
}

.public-view-link:hover {
    opacity: 1;
    color: var(--asa-red);
}

/* ============================================
   Utility Classes
   ============================================ */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-16 {
    margin-top: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state-subtext {
    font-size: 14px;
    color: var(--text-light);
}

