/* Custom styles for Gantt Document System */
body {
    background-color: #f8f9fa;
}

.content-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.navbar-brand {
    font-weight: bold;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Document status badges */
.status-pending { background-color: #6c757d; }
.status-submitted { background-color: #ffc107; }
.status-approved { background-color: #198754; }
.status-rejected { background-color: #dc3545; }

/* Activity status badges */
.activity-not-started { background-color: #6c757d; }
.activity-in-progress { background-color: #0d6efd; }
.activity-completed { background-color: #198754; }

/* Progress bars */
.progress {
    height: 20px;
}

.progress-bar {
    font-size: 12px;
    line-height: 20px;
}

/* Document upload area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: #e7f3ff;
}

.upload-area.dragover {
    border-color: #0d6efd;
    background-color: #e7f3ff;
}

/* Table styles */
.table th {
    border-top: none;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Modal styles */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Button styles */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Gantt chart custom styles */
.highcharts-container {
    font-family: inherit;
}

.highcharts-gantt-series .highcharts-point {
    stroke-width: 1;
}

/* Document version history */
.version-history {
    max-height: 300px;
    overflow-y: auto;
}

.version-item {
    border-left: 3px solid #dee2e6;
    padding-left: 15px;
    margin-bottom: 15px;
}

.version-item.current {
    border-left-color: #198754;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .card-header .btn {
        margin-top: 10px;
    }
    
    .table-responsive {
        font-size: 14px;
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Success/Error messages */
.alert {
    border-radius: 8px;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}
