
:root {
    --primary-color: #366092;
    --secondary-color: #C00000;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-grey: #f8f9fa;
    --border-color: #dee2e6;
    --text-dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c4a6f 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

header p {
    opacity: 0.9;
}

/* Navigation */
nav {
    background: white;
    border-bottom: 3px solid var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

nav a:hover {
    background: var(--primary-color);
    color: white;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s;
}

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

.stat-card h3 {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-card .label {
    color: #888;
    font-size: 0.9em;
}

/* Search and Filters */
.search-section {
    background: var(--light-grey);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.search-box {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: white;
    cursor: pointer;
}

/* Issues Table */
.issues-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

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

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

th:hover {
    background: #2c4a6f;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background: var(--light-grey);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

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

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

.badge-in-progress {
    background: #fff3cd;
    color: #856404;
}

/* Severity Badges */
.severity-critical {
    color: var(--danger-color);
    font-weight: bold;
}

.severity-high {
    color: #fd7e14;
    font-weight: bold;
}

.severity-medium {
    color: var(--warning-color);
}

.severity-low {
    color: #6c757d;
}

/* Issue Detail Page */
.issue-detail {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.issue-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.issue-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.detail-item {
    padding: 15px;
    background: var(--light-grey);
    border-radius: 5px;
}

.detail-item label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.detail-item .value {
    color: var(--text-dark);
}

/* Charts */
.chart-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 10px;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state svg {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    opacity: 0.5;
}


/* Timeline for Comments - Enhanced Design */
.timeline {
    position: relative;
    padding: 30px 0 30px 40px;
    margin: 40px 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(54, 96, 146, 0.02) 50%, transparent 100%);
    border-radius: 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient(to bottom,
        var(--primary-color) 0%,
        var(--primary-color) 50%,
        var(--border-color) 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(54, 96, 146, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: 40px;
    animation: fadeInUp 0.5s ease-out;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

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

/* Timeline dots/markers - Enhanced */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-color);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(54, 96, 146, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(54, 96, 146, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Date marker (filled dot) */
.timeline-item.date-marker::before {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c4a6f 100%);
    border-color: var(--primary-color);
}

/* Comment item (different color) */
.timeline-item.comment-item::before {
    border-color: #4a90e2;
    background: white;
}

.timeline-item.comment-item:hover::before {
    background: #4a90e2;
    border-color: #4a90e2;
}

/* Timeline date badge - Enhanced */
.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c4a6f 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.80em;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(54, 96, 146, 0.3);
    letter-spacing: 0.3px;
}

.timeline-date::before {
    content: '📅';
    font-size: 1.1em;
}

/* Timeline label - Enhanced */
.timeline-label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-label::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
}

.comment-item .timeline-label {
    color: #2563eb;
}

.comment-item .timeline-label::before {
    background: #4a90e2;
}

/* Timeline content box - Enhanced */
.timeline-content {
    background: white;
    padding: 18px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.7;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.timeline-content:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
    background: #fafbfc;
}

/* Comment item styling */
.comment-item .timeline-content {
    border-left-color: #4a90e2;
    background: linear-gradient(to right, rgba(74, 144, 226, 0.02), white);
}

.comment-item .timeline-content::before {
    background: linear-gradient(to bottom, #4a90e2, transparent);
}

/* Add subtle pattern to content */
.timeline-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(54, 96, 146, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-item::before {
        left: 11px;
    }
}

/* Improved footer */
footer {
    background: var(--light-grey);
    border-top: 3px solid var(--primary-color);
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-credits {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

.footer-credits a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

/* Section Headers */
.section-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c4a6f 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 30px 0 20px 0;
}

.section-header h3 {
    margin: 0;
    font-size: 1.2em;
}

/* Utility Classes */
.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.text-center {
    text-align: center;
}

.number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.label {
    color: #888;
    font-size: 0.9em;
    margin-top: 5px;
}
