/* IEP Analyzer Styles - iep-analyzer-styles.css */
/* Works alongside guideai.css for consistent design */

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

/* ===== PAGE LAYOUT ===== */
/* Make navbar flush with top of page */
body {
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

html {
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== NAVBAR CLEANUP ===== */
/* Simple navbar styling - using inline styles for clarity */
.navbar {
    padding: 0.75rem 0 !important;
    margin: 0 !important;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-right: 2rem !important;
}

.navbar-nav {
    gap: 0.5rem !important;
}

.dropdown-menu {
    border: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0 !important;
}

.dropdown-item {
    padding: 0.75rem 1rem !important;
}

.dropdown-item:hover {
    background-color: rgba(111, 66, 193, 0.1) !important;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* IEP Analyzer Header (below main navigation) */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

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

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Alerts */
.alert {
    padding: 20px;
    margin: 20px 40px;
    border-radius: 10px;
    font-weight: bold;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Upload Section */
.upload-section {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
}

.upload-section h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2em;
}

.upload-box {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 40px;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #764ba2;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.upload-label {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s;
}

.upload-label:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

input[type="file"] {
    display: none;
}

.file-name {
    margin-top: 20px;
    font-size: 1.1em;
    color: #667eea;
    font-weight: bold;
    min-height: 24px;
}

.btn-submit {
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.privacy-note {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    text-align: left;
}

.privacy-note h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.privacy-note p, .privacy-note ul {
    color: #666;
    line-height: 1.8;
}

.privacy-note ul {
    list-style: none;
    padding-left: 0;
}

.privacy-note li {
    padding: 5px 0;
}

/* Content Section */
.content {
    padding: 40px;
}

.section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.subsection-title {
    font-size: 1.4em;
    color: #764ba2;
    margin: 20px 0 15px 0;
}

/* Student Card */
.student-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.student-card h3 {
    color: #764ba2;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-label {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.info-value {
    font-size: 1.1em;
    color: #333;
}

.eligibilities {
    margin-top: 20px;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 10px;
    margin-top: 5px;
}

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

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

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Support Levels */
.support-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.support-level-card {
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    font-weight: bold;
    transition: transform 0.3s;
}

.support-level-card:hover {
    transform: translateY(-5px);
}

.level-number {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.level-name {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.level-desc {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Strength and Concern Items */
.strength-item, .concern-item {
    background: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    transition: transform 0.2s;
}

.strength-item:hover, .concern-item:hover {
    transform: translateX(5px);
}

.concern-item {
    border-left-color: #ff9800;
}

/* Goal Cards */
.goal-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #667eea;
    transition: all 0.3s;
}

.goal-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

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

.goal-title {
    font-size: 1.5em;
    color: #764ba2;
    margin: 0;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.goal-friendly {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    color: #0066cc;
    font-style: italic;
}

.goal-meta {
    color: #666;
    margin-bottom: 15px;
}

/* Goal Details Section */
.goal-details-section {
    background: #f5f7ff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.goal-detail-item {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    align-items: start;
}

.goal-detail-item:last-child {
    margin-bottom: 0;
}

.goal-detail-label {
    font-weight: bold;
    color: #764ba2;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.goal-detail-value {
    color: #333;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Section Help Box */
.section-help {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.section-help p {
    color: #555;
    font-size: 0.95em;
    margin: 0;
    line-height: 1.6;
}

/* Progress Bars */
.progress-container {
    margin: 20px 0;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9em;
}

.progress-bar-wrapper {
    background: #e0e0e0;
    height: 30px;
    border-radius: 15px;
    overflow: visible;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-text {
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

.progress-target {
    position: absolute;
    top: -5px;
    height: 40px;
    width: 3px;
    background: #ff5722;
    z-index: 10;
}

.progress-target::after {
    content: 'Target';
    position: absolute;
    top: -25px;
    left: -20px;
    font-size: 0.75em;
    color: #ff5722;
    font-weight: bold;
    white-space: nowrap;
}

.goal-footer {
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Chart */
.chart-container {
    position: relative;
    height: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* Services */
.service-list {
    list-style: none;
}

.service-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.service-item:hover {
    transform: translateX(5px);
}

.service-name {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.service-time {
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
}

/* Accommodations */
.accommodation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.accommodation-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #764ba2;
    transition: transform 0.2s;
}

.accommodation-item:hover {
    transform: translateX(5px);
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-print {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-new {
    background: #6c757d;
    color: white;
}

.btn-action:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Clear Cache Button */
.clear-cache-btn {
    background: #dc3545; /* Red color for clear cache */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-cache-btn:hover {
    background: #c82333; /* Darker red on hover */
    transform: scale(1.05);
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header p {
        font-size: 1em;
    }
    
    .content, .upload-section {
        padding: 20px;
    }
    
    .section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .goal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .support-level-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .accommodation-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
}

/* Responsive Design for Goal Details */
@media (max-width: 768px) {
    .goal-detail-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .goal-detail-label {
        justify-content: flex-start;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .upload-section, .action-buttons {
        display: none;
    }
    
    .alert {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .goal-card {
        page-break-inside: avoid;
    }
}