/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.login-header h3 {
    margin: 0;
    font-weight: 600;
}

.login-header p {
    margin: 5px 0 0;
    opacity: 0.9;
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: 12px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.dashboard-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Card Icon Colors by Type */
.dashboard-card .card-icon.bg-primary {
    background-color: #667eea !important;
}

.dashboard-card .card-icon.bg-success {
    background-color: #51cf66 !important;
}

.dashboard-card .card-icon.bg-info {
    background-color: #339af0 !important;
}

.dashboard-card .card-icon.bg-warning {
    background-color: #fcc419 !important;
}

.dashboard-card .card-icon.bg-danger {
    background-color: #ff6b6b !important;
}

.dashboard-card .card-icon.bg-secondary {
    background-color: #868e96 !important;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #495057;
    color: white;
    border: none;
}

/* Forms */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a3f8f 100%);
    border: none;
}

/* Progress Bar */
.progress {
    height: 25px;
    border-radius: 12px;
}

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

/* Status Badges */
.badge {
    padding: 8px 12px;
    font-weight: 500;
}

/* Action Buttons */
.btn-action {
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-action:hover {
    transform: scale(1.05);
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
}

/* Card Headers */
.card-header {
    background-color: white;
    border-bottom: 2px solid #f0f0f0;
    border-radius: 12px 12px 0 0 !important;
    padding: 15px 20px;
}

.card-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

/* Timeline for Progress */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dee2e6;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-item.completed .timeline-icon {
    background: #198754;
    box-shadow: 0 0 0 2px #198754;
}

.timeline-item.current .timeline-icon {
    background: #0d6efd;
    box-shadow: 0 0 0 2px #0d6efd;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 15px;
    }

    .table-responsive {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn-action {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Task Table Styles */
.task-table {
    font-size: 0.9rem;
}

.task-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #495057;
}

.task-table tbody tr {
    transition: background-color 0.2s ease;
}

.task-table tbody tr:hover {
    background-color: #f1f3f5 !important;
}

.task-table tbody td {
    vertical-align: middle;
    border-bottom-color: #e9ecef;
}

.task-name-cell {
    max-width: 300px;
}

.task-name {
    font-weight: 500;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.progress-container {
    background-color: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    transition: width 0.3s ease;
}

.action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stage Badges */
.stage-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
    display: inline-block;
}

/* Public Reports Page Styles */
.public-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.public-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.public-header h1 {
    margin: 0 0 10px;
    color: #495057;
    font-size: 2rem;
}

.public-header p {
    margin: 0;
    color: #6c757d;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.results-section h2 {
    margin: 0 0 20px;
    color: #495057;
    font-size: 1.5rem;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table thead th {
    background-color: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.results-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.results-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

.results-table .no-data {
    text-align: center;
    color: #6c757d;
    padding: 40px !important;
    font-style: italic;
}

.result-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.result-badge.pass {
    background-color: #d4edda;
    color: #155724;
}

.result-badge.fail {
    background-color: #f8d7da;
    color: #721c24;
}

.table-responsive {
    overflow-x: auto;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
