/* Document Details Page Styles */
.min-h-screen {
    min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    transform: translateX(0);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Main content */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 280px;
    }
    
    .sidebar.active + .main-content {
        margin-left: 280px;
    }
}

/* Top bar */
header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.required {
    color: #ef4444;
}

/* Button Styles */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.document-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.document-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.document-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.document-info {
    flex: 1;
}

.document-label {
    font-weight: 500;
    color: #64748b;
    display: block;
    margin-bottom: 0.25rem;
}

.document-value {
    color: #1e293b;
    font-weight: 500;
}

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

/* File Upload Styles */
.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.file-upload:hover {
    border-color: #3b82f6;
}

.file-upload.dragover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.file-upload-icon {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.file-upload-text {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.file-input {
    display: none;
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.file-size {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Document Status */
.document-status {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.status-uploaded {
    background-color: #d1fae5;
    color: #065f46;
}

.status-missing {
    background-color: #fef3c7;
    color: #92400e;
}

.status-pending {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Section Styles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 1rem;
}

/* Upload Progress */
.upload-progress {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.upload-progress-bar {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Action Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

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

.btn-secondary:hover {
    background: #4b5563;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        padding: 1rem;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .document-actions {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }
    
    .file-upload {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .form-group {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}