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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('AppSTARnauts.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    padding-left: 270px;
    color: #fff;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: rgba(30, 30, 30, 0.1);
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.sidebar h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.review-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.review-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.review-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.review-item-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.review-item-delete {
    float: right;
    color: #dc3545;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(220, 53, 69, 0.1);
}

.review-item-delete:hover {
    background: rgba(220, 53, 69, 0.2);
}

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

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header a {
    transition: all 0.3s ease;
    text-decoration: underline !important;
    cursor: pointer;
}

.header a:hover {
    opacity: 0.8;
    transform: scale(1.02);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Header metadata styles */
.header-meta {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-top: 10px;
}

.header-meta.secondary {
    margin-top: 5px;
}

/* Link styles */
.link-primary {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.link-inherit {
    color: #007bff;
    text-decoration: none;
}

.link-inherit:hover {
    text-decoration: underline;
}

/* Button container */
.button-container {
    margin-top: 30px;
    text-align: center;
}

.task-button-group {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.quality-badge-container {
    margin-top: 15px;
    text-align: center;
}

/* SCIT Summary styles */
.scit-summary {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.scit-section-header {
    padding-bottom: 10px;
}

.scit-section-header.success {
    color: #28a745;
    border-bottom: 2px solid #28a745;
}

.scit-section-header.warning {
    color: #dc3545;
    border-bottom: 2px solid #dc3545;
}

.scit-section-header.info {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.scit-divider {
    margin: 30px 0;
    border: 1px solid #ddd;
}

.feedback-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #dee2e6;
}

.feedback-message {
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Modal content styles */
.modal-content-wrapper {
    white-space: pre-wrap;
    font-family: inherit;
}

.modal-error {
    text-align: center;
    color: #dc3545;
    padding: 40px;
}


.summary {
    background: rgba(30, 30, 30, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary h2 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: rgba(40, 40, 40, 0.5);
    border: 2px solid transparent;
}

.stat-card.total-rating {
    border-color:rgba(255, 255, 255, 0.2);
    background: rgba(30, 30, 30, 0.1);
}

.stat-card.high-rating {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.stat-card.sufficient-rating {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.stat-card.semi-rating {
    border-color: #fd7e14;
    background: rgba(253, 126, 20, 0.1);
}

.stat-card.poor-rating {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    color: #ccc;
    margin-top: 5px;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.task-card {
    background: rgba(30, 30, 30, 0.1);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    cursor: pointer;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.task-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.quality-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.quality-high { background-color: #28a745; }
.quality-sufficient { background-color: #007bff; }
.quality-semi { background-color: #fd7e14; }
.quality-poor { background-color: #dc3545; }

.task-details {
    color: #ccc;
    line-height: 1.6;
}

.task-detail {
    margin-bottom: 8px;
}

.task-detail strong {
    color: #fff;
}

.footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: rgba(30, 30, 30, 0.95);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
    color: #fff;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Styles */
.btn-log, .btn-improvements {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-log:hover, .btn-improvements:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* Form Section Styles */
.form-section {
    background: rgba(30, 30, 30, 0.1);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin: 30px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section label {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 500;
}

.form-section input[type="text"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1em;
    color: #fff;
    transition: all 0.3s;
}

.form-section input[type="text"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-section input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-section button {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.form-section button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.form-section button.btn-log {
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Progress Styles */
.progress {
    margin: 20px 0;
    background: rgba(30, 30, 30, 0.1);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress.hidden {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #fff;
}
