/* Documents Page Styles */

.documents-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Document Sidebar */
.document-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.document-sidebar h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.document-item:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.document-item.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.document-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.document-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Document Viewer */
.document-viewer {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.document-content {
    display: none;
    padding: 2rem;
}

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

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.document-header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.8rem;
    flex: 1;
}

.document-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.document-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark, #1a252f);
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    text-decoration: none;
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.disabled:hover {
    background-color: inherit;
}

/* Document Body Content */
.document-body {
    line-height: 1.7;
    color: #333;
}

.document-body h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.document-body h4 {
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.document-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

.document-body ul,
.document-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.document-body li {
    margin-bottom: 0.5rem;
}

.document-body strong {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .documents-layout {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }
    
    .document-sidebar {
        padding: 1.25rem;
    }
    
    .document-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .documents-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .document-sidebar {
        position: static;
        order: 2;
        margin-top: 1rem;
    }
    
    .document-viewer {
        order: 1;
    }
    
    .document-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .document-actions {
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .document-content {
        padding: 1.25rem;
    }
    
    .document-body h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .document-sidebar {
        padding: 1rem;
    }
    
    .document-content {
        padding: 1rem;
    }
    
    .document-item {
        padding: 0.75rem;
    }
    
    .document-item span {
        font-size: 0.9rem;
    }
    
    .document-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .document-header h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .document-sidebar,
    .document-actions {
        display: none;
    }
    
    .documents-layout {
        grid-template-columns: 1fr;
    }
    
    .document-content {
        padding: 0;
        box-shadow: none;
    }
    
    .document-header {
        border-bottom: 2px solid #000;
        margin-bottom: 1rem;
    }
}/* Al
ert Boxes */
.alert {
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.alert-info {
    background-color: #e7f3ff;
    border-left-color: #0066cc;
    color: #004085;
}

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

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

/* By-Laws Content Styling */
.document-body hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2rem 0;
}

.document-body p strong {
    color: var(--primary);
    font-weight: 600;
}
/* Documen
t Header Info Styling */
.document-header-info {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.document-header-info p {
    margin: 0;
    font-style: italic;
    color: #495057;
    line-height: 1.4;
}

.document-header-info em {
    font-style: normal;
    color: var(--primary);
    font-weight: 500;
}