﻿/* Updated app.css with integrated styles from HTML mockups */

:root {
    /* Primary colors */
    --primary-color: #0e2a47;
    --primary-dark: #091d33;
    --primary-light: #1a2a47;
    /* Secondary colors */
    --secondary-color: #E67E22;
    --secondary-dark: #D35400;
    /* Accent colors */
    --accent-color: #F5EFE6;
    --accent-light: #FAF9F6;
    /* Text colors */
    --text-primary: #333333;
    --text-secondary: #6B7280;
    --text-light: #FFFFFF;
    --text-highlight: #F0C16C;
    /* UI colors */
    --ui-border: #dee2e6;
    --ui-hover: #F3F4F6;
    --ui-shadow: rgba(0, 0, 0, 0.1);
    --ui-error: #EF4444;
    --ui-success: #10B981;
    /* Added from HTML mockups */
    --background-color: #f8f9fa;
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--accent-color);
    margin: 0;
    padding: 0;
}

a, .btn-link {
    color: var(--primary-color);
    text-decoration: none;
}

    a:hover, .btn-link:hover {
        text-decoration: none;
        opacity: 0.9;
    }

/* Button styles */
.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-block;
}

    .btn-primary:hover {
        background-color: var(--secondary-dark);
    }

.btn-secondary {
    background-color: var(--primary-dark);
    color: var(--text-light);
    border: 1px solid var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--secondary-color);
}

/* Added from HTML mockups */
.btn-danger {
    background-color: var(--ui-error);
    color: white;
}

    .btn-danger:hover {
        background-color: #c82333;
    }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.save-button {
    background-color: var(--primary-color);
    color: white;
}

    .save-button:hover {
        background-color: var(--primary-dark);
    }

.cancel-button {
    background-color: #6c757d;
    color: white;
}

    .cancel-button:hover {
        background-color: #5a6268;
    }

/* Form styles */
.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--ui-success);
}

.invalid {
    outline: 1px solid var(--ui-error);
}

.validation-message {
    color: var(--ui-error);
}

/* Form elements - Added from HTML mockups */
.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    box-sizing: border-box;
}

/* Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Layout */
.page {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.sidebar {
    background-color: var(--primary-color);
    width: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.content {
    flex: 1;
    padding: 1.5rem;
    overflow: auto;
}

/* Added from HTML mockups */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main-content {
    display: flex;
    flex: 1;
}


/* Documents grid */
.page-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.document-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--ui-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .document-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px var(--ui-shadow);
    }

.document-card-header {
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
}

    .document-card-header h3 {
        color: white;
        margin: 0 0 0.5rem 0;
        font-size: 1.1rem;
    }

.document-card-content {
    padding: 1rem;
}

.metadata {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Documents List View - Added from HTML mockups */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.document-list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

    .document-list-item:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.document-icon {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.document-info {
    flex: 1;
}

.document-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.document-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

.view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.view-toggle-button {
    padding: 0.5rem 0.75rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .view-toggle-button:first-child {
        border-radius: 4px 0 0 4px;
    }

    .view-toggle-button:last-child {
        border-radius: 0 4px 4px 0;
    }

    .view-toggle-button.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

/* Search results */
.result-item {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px var(--ui-shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 3px solid var(--primary-color);
}

    .result-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px var(--ui-shadow);
    }

.result-title {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.result-metadata {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.jurisdiction {
    color: var(--secondary-color);
    font-weight: 500;
}

.page-indicator {
    color: var(--text-secondary);
}

.result-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

    /* Added from HTML mockups */
    .result-text mark {
        background-color: rgba(240, 193, 108, 0.3);
        padding: 0 2px;
        border-radius: 2px;
    }

/* Document viewer */
.document-viewer {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px var(--ui-shadow);
    overflow: hidden;
    margin-top: 1.5rem;
}

.document-header {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--text-light);
}

    .document-header h2 {
        color: var(--text-light);
        margin: 0 0 0.5rem 0;
    }

.document-metadata {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.viewer-container {
    display: flex;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    flex: 1;
}

.pdf-container {
    flex: 1;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.pdf-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.document-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--accent-light);
    border-top: 1px solid var(--ui-border);
}

    .document-toolbar button {
        padding: 0.5rem 1rem;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 0.25rem;
        cursor: pointer;
        transition: background-color 0.2s;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .document-toolbar button:hover:not(:disabled) {
            background-color: var(--primary-light);
        }

        .document-toolbar button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

/* Annotation system - Added from HTML mockups */
.annotation-sidebar {
    width: 300px;
    background-color: white;
    border-left: 1px solid #ddd;
    overflow-y: auto;
    transition: width 0.3s ease;
}

    .annotation-sidebar.visible {
        width: 300px;
    }

.annotation-panel {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .annotation-panel h3 {
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 1.2rem;
        color: var(--primary-color);
    }

.annotation-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.annotation-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
}

.annotation-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.annotation-content {
    font-size: 0.9rem;
}

.annotation-form {
    margin-top: auto;
}

    .annotation-form textarea {
        width: 100%;
        min-height: 100px;
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        resize: vertical;
    }

.annotation-form-options {
    margin-bottom: 0.5rem;
}

.toggle-annotations {
    position: absolute;
    right: 300px;
    top: 10px;
    z-index: 5;
    padding: 0.25rem 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* NavMenu styling */
.brand {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--primary-light);
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.brand-name {
    font-size: 0.9rem;
    margin-top: 0.25rem;
    color: var(--text-light);
}

.nav-menu {
    padding: 1rem 0;
    flex: 1;
}

.nav-section {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--accent-light);
    opacity: 0.7;
    text-transform: uppercase;
    margin-top: 1rem;
}

.nav-item {
    padding: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    opacity: 0.8;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

    .nav-link:hover, .nav-link.active {
        background-color: var(--primary-light);
        opacity: 1;
        border-left-color: var(--secondary-color);
        text-decoration: none;
    }

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--primary-light);
}

.user-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.username {
    font-weight: 500;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.7;
}

.guest-label {
    opacity: 0.7;
}

/* Home page */
.home-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Loading state */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.no-documents {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border: 1px dashed var(--ui-border);
    border-radius: 0.5rem;
}

/* Admin section styles - Added from HTML mockups */
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--ui-border);
    margin-bottom: 2rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #666;
}

    .tab.active {
        border-bottom-color: var(--primary-color);
        color: var(--primary-color);
    }

.admin-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .admin-section h2 {
        margin-top: 0;
        margin-bottom: 1rem;
        color: var(--primary-color);
        font-size: 1.5rem;
    }

    .admin-section p {
        margin-bottom: 1.5rem;
        color: #666;
    }

.file-upload {
    margin-top: 1rem;
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s;
}

    .file-upload:hover {
        border-color: var(--primary-color);
        background-color: rgba(14, 42, 71, 0.05);
    }



.nav-icon, .oi {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.document-toolbar .oi {
    margin: 0 0.5rem;
}





.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

    .admin-table th {
        text-align: left;
        padding: 1rem;
        background-color: #f5f5f5;
        border-bottom: 2px solid #ddd;
        color: var(--primary-color);
        font-weight: 600;
    }

    .admin-table td {
        padding: 1rem;
        border-bottom: 1px solid #ddd;
        vertical-align: middle;
    }

    .admin-table tr:hover {
        background-color: #f9f9f9;
    }

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .action-btn:hover {
        background-color: #e9ecef;
    }

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

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

/* Pagination - Added from HTML mockups */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-button {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    cursor: pointer;
    min-width: 30px;
    text-align: center;
    border-radius: 4px;
}

    .page-button.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

/* Filter Panel - Added from HTML mockups */
.filter-panel {
    background-color: white;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-section {
    margin-bottom: 1rem;
}

    .filter-section h4 {
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-size: 1rem;
        color: var(--primary-color);
    }

.jurisdiction-list, .date-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.date-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reset-button {
    padding: 0.25rem 0.5rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Settings Page - Added from HTML mockups */
.settings-page {
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .settings-section h2 {
        margin-top: 0;
        margin-bottom: 1.5rem;
        color: var(--primary-color);
        font-size: 1.5rem;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 0.75rem;
    }

.setting-row {
    margin-bottom: 1.5rem;
}

    .setting-row label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .setting-row input,
    .setting-row select {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1rem;
    }

        .setting-row input[type="password"] {
            font-family: monospace;
        }

.setting-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.success-message {
    padding: 1rem;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-left: 4px solid #28a745;
}

/* Login Page - Added from HTML mockups */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.login-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

    .login-header h2 {
        margin: 0;
        font-size: 1.5rem;
        color: white;
    }

    .login-header p {
        margin-top: 0.5rem;
        margin-bottom: 0;
        opacity: 0.8;
    }

.login-body {
    padding: 1.5rem;
}

.form-actions {
    margin-top: 1.5rem;
}

.text-muted {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.btn-block {
    display: block;
    width: 100%;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Hero sections - Added from HTML mockups */
.hero-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .hero-section h1 {
        margin-top: 0;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    .hero-section p {
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
        color: #666;
    }

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .card h3 {
        margin-top: 0;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    .card p {
        color: #666;
    }

/* Error messages - Added from HTML mockups */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}


/* Toast Notification Styles */
.toast-container {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    max-width: 350px !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.toast {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    background-color: white !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-bottom: 0.5rem !important;
    animation: toast-in-right 0.3s ease !important;
}

/* Additional animation to ensure it's working */
@keyframes toast-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

    .toast.expanded {
        max-height: 300px;
    }

.toast-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-icon {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.toast-title {
    flex: 1;
    font-weight: 600;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.25rem;
    margin-left: 0.5rem;
    opacity: 0.5;
}

    .toast-close:hover {
        opacity: 1;
    }

.toast-body {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    overflow-y: auto;
    max-height: 220px;
}

/* Toast Colors */
.toast-info {
    border-left: 4px solid var(--primary-color);
}

    .toast-info .toast-icon {
        color: var(--primary-color);
    }

.toast-success {
    border-left: 4px solid var(--ui-success);
}

    .toast-success .toast-icon {
        color: var(--ui-success);
    }

.toast-warning {
    border-left: 4px solid #ffc107;
}

    .toast-warning .toast-icon {
        color: #ffc107;
    }

.toast-error {
    border-left: 4px solid var(--ui-error);
}

    .toast-error .toast-icon {
        color: var(--ui-error);
    }

/* Toast Animation */
@keyframes toast-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast {
    animation: toast-in-right 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .toast-container {
        right: 0;
        left: 0;
        margin: 0 auto;
        max-width: 90%;
    }
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    .page {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .annotation-sidebar {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 10;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .toggle-annotations {
        right: 10px;
    }

    .actions {
        flex-direction: column;
    }

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