/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Site note (top banner under header) */
.site-note {
    background: rgba(255, 250, 235, 0.95);
    color: #13315c;
    border-left: 4px solid #f59e0b; /* subtle accent */
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    max-width: 1200px;
    margin: 0.5rem auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}
.site-note p { margin: 0; }
.site-note a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
}

/* Dismiss button for site note */
.site-note { position: relative; }

/* Controls above the list (search/filter) */
.list-controls { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
#search-input {
    width: 320px;
    max-width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #e6eef8;
    box-shadow: 0 4px 14px rgba(102,126,234,0.06) inset;
    font-size: 0.95rem;
}

/* Improve report summary layout and truncation */
.report-summary {
    color: #666;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 560px;
}

/* Modal improvements */
.modal-content { padding: 1.5rem 1.5rem 2rem; }
.close {
    position: absolute;
    right: 18px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}
.close:hover { color: #667eea; transform: scale(1.05); }

@media (max-width: 640px) {
    #search-input { width: 100%; }
    .list-controls { justify-content: center; margin-bottom: 0.75rem; }
}

/* Restore notice floating button (shown when the notice is dismissed) */
.show-site-note { display: none; }

@media (max-width: 640px) {
    .site-note { font-size: 0.9rem; padding: 0.5rem 0.75rem; margin: 0.5rem 1rem; }
}

.header-left h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-right p {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Welcome Section */
#welcome {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

#welcome h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#welcome p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Landing Section */
#landing {
    margin-bottom: 4rem;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 2s both;
    margin-bottom: 4rem;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.card h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 500;
}

.card p {
    font-size: 1rem;
    opacity: 0.8;
}

/* List View */
#list-view {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: fadeInUp 1s ease-out 2.5s both;
    margin-top: 2rem;
}

#list-title {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    position: sticky;
    top: 100px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

#report-list {
    list-style: none;
}

#report-list li {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#report-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

#report-list li:last-child {
    margin-bottom: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.pagination-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#page-info {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    min-width: 120px;
    text-align: center;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number-btn {
    background: #f8f9fa;
    color: #667eea;
    border: 1px solid #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-number-btn:hover {
    background: #667eea;
    color: white;
}

.page-number-btn.active {
    background: #667eea;
    color: white;
    font-weight: bold;
}

.report-info {
    flex-grow: 1;
}

.report-date {
    font-weight: bold;
    color: #2c3e50;
}

.report-project {
    color: #e74c3c;
    font-weight: 500;
    margin-top: 0.25rem;
}

.report-summary {
    color: #666;
    margin-top: 0.25rem;
}

.report-pr {
    color: #3498db;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-weight: bold;
}

.report-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-completed {
    background-color: #27ae60;
    color: white;
}

.status-in-progress {
    background-color: #f39c12;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: slideInUp 0.4s ease-out;
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #667eea;
    transform: scale(1.1);
}

#modal-title {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 500;
    padding-right: 50px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2.5rem;
    border-radius: 15px 15px 0 0;
    z-index: 1;
}

#modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

#modal-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
    font-size: 1.4rem;
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 300;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links svg {
    width: 28px;
    height: 28px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .header-left h1 {
        font-size: 2rem;
    }

    .header-right p {
        font-size: 1rem;
    }

    #welcome h2 {
        font-size: 2rem;
    }

    #welcome p {
        font-size: 1rem;
    }

    .card-container {
        gap: 1rem;
    }

    .card {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    #list-view {
        padding: 1rem;
    }

    #list-title {
        font-size: 1.5rem;
    }

    #report-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .report-status {
        margin-top: 0.5rem;
        align-self: flex-end;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }

    #modal-title {
        font-size: 1.5rem;
        padding-right: 40px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links svg {
        width: 24px;
        height: 24px;
    }

    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination-btn {
        width: 100%;
        max-width: 150px;
    }

    #page-info {
        order: -1;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }

    .header-left h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1rem;
    }

    footer {
        padding: 1.5rem;
    }
}