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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Hide community insights by default to prevent flicker */
#insightsOptIn {
    display: none;
}

.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container h1 {
    margin: 0;
    font-size: 1.8rem;
}

.nav-container .subtitle {
    margin: 0;
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: #ecf0f1;
    opacity: 0.8;
    font-weight: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    color: #ecf0f1;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Unified Filters Section */
.unified-filters-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

.filter-header {
    margin-bottom: 20px;
}

.filter-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #333;
}

.filter-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* AI Search Row */
.ai-search-row {
    margin-top: 1rem;
    margin-bottom: 20px;
    padding: 1rem;
    background: #f0f8ff;
    border: 1px solid #b8d4f1;
    border-radius: 8px;
}

.ai-search-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.ai-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

#aiDiscoveryInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #333;
}

#aiDiscoveryInput::placeholder {
    color: #666;
}

#aiDiscoveryBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#aiDiscoveryBtn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.ai-discovery-results {
    margin-top: 16px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ai-result-item {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.ai-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ai-result-item:last-child {
    margin-bottom: 0;
}

.ai-loading {
    text-align: center;
    padding: 20px;
    color: #333;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.auth-section {
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    background: white;
    color: #2c3e50;
    text-align: center;
    padding: 3rem 2rem;
}

.hero-section h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-section p {
    margin: 0;
    font-size: 1.2rem;
    color: #666;
}

/* Demo Section */
.demo-section {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.demo-section h3 {
    text-align: center;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.demo-subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 2rem 0;
    font-size: 1rem;
}

.demo-schools {
    margin-bottom: 3rem;
}

.demo-school-card {
    margin-bottom: 1.5rem;
}

.demo-school-card h3,
.demo-school-card .school-name-row,
.demo-school-card .school-content,
.demo-school-card .school-details,
.demo-school-card .priority-quick-actions {
    text-align: left;
}

/* Feature Highlights */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.feature-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Auth Forms */
.auth-forms {
    padding: 2rem;
    background: white;
}

/* Demo Loading and Error States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.demo-error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

/* Signup Prompt */
.signup-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.signup-prompt-content {
    padding: 1.5rem;
}

.signup-prompt p {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.4;
}

.signup-prompt .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 8px 16px;
    font-size: 0.85rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Desktop: 2x2 grid for features */
@media (min-width: 900px) {
    .feature-highlights {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        gap: 2rem;
    }
}

/* Responsive Design for Demo */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .demo-section {
        padding: 2rem 1rem;
    }
    
    .feature-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .signup-prompt {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: #ecf0f1;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 8px;
    margin: 0 2px;
}



.tab-btn.active {
    background: #3498db;
    color: white;
}

.auth-form input, .auth-form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.security-questions-intro {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.security-question-group {
    margin-bottom: 1.5rem;
}

.security-question-group .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.security-question-group select {
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.form-footer {
    margin-top: 1rem;
    text-align: center;
}

.login-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.forgot-password-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: none;
    font-weight: 600;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.section-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tabs-left {
    display: flex;
    gap: 4px;
}

.tabs-right {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.section-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 15px;
    color: #6c757d;
    position: relative;
}

.section-tab:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.section-tab.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    transform: translateY(-1px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Traditional Filters within Unified Section */

.filters-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: start;
}

.distance-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f8ff;
    border: 1px solid #b8d4f1;
    border-radius: 8px;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 80px;
}

.filter-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.875rem;
}

.location-filter-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
}

.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    max-width: 100%;
}

.filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: normal;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    min-width: fit-content;
}

.filter-checkboxes input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* Make priority filter more compact since it has 4 options */
#priorityFilter.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Make sure geography filter wraps nicely */
#geoFilter.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Type filter layout */
#typeFilter.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Gender filter layout */
#genderFilter.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .filters-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .filters-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .filter-group {
        min-height: auto;
    }
    
    .distance-filter-row {
        grid-template-columns: 1fr;
    }
}

/* School Card Layout */
.school-name-row {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.school-name-row h3 {
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.school-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.school-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.school-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* School Metadata Styling */
.school-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 14px;
    border: 1px solid #e9ecef;
    font-weight: 500;
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.metadata-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.metadata-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

@media (max-width: 480px) {
    .filters-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .section-tabs {
        padding: 4px;
        margin-bottom: 1.5rem;
    }
    
    .section-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .tabs-left {
        gap: 2px;
    }
    
    .school-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .school-name-row {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .school-name-row h3 {
        font-size: 1.1rem;
    }
    
    .school-content {
        gap: 0.75rem;
    }
    
    .school-actions {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .school-metadata {
        gap: 0.5rem;
    }
    
    .metadata-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
        gap: 0.3rem;
    }
    
    .metadata-icon {
        width: 12px;
        height: 12px;
    }
    
    .priority-buttons {
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .priority-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 35px;
        height: 35px;
    }
    
    .priority-quick-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

/* Pagination Styles */
.pagination-container {
    margin: 2rem 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: #f5f5f5;
    border-color: #3498db;
}

.pagination-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: #666;
    font-weight: bold;
}

.filter-count {
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Pagination Arrow Buttons */
.pagination-arrow {
    min-width: 40px !important;
    padding: 0.5rem !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 768px) {
    .pagination-arrow {
        min-width: 36px !important;
        padding: 0.4rem !important;
        font-size: 1.1rem !important;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
}

.schools-list {
    display: grid;
    gap: 1rem;
}

.school-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.school-card.first-choice-school {
    background: linear-gradient(135deg, #fff9c4 0%, #fff 30%);
    border: 2px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    transform: scale(1.02);
}

.first-choice-crown {
    font-size: 1.2em;
    margin-left: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    }
    to {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 1));
    }
}

/* Timeline Widget */
.timeline-widget {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.timeline-disclaimer {
    padding: 8px 20px;
    background-color: #fff3cd;
    border-bottom: 1px solid #e0e0e0;
    color: #856404;
    font-size: 0.875rem;
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
}

.timeline-filter input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.filter-text {
    user-select: none;
    cursor: pointer;
}

.timeline-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.timeline-toggle {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    color: #666;
    transition: transform 0.2s;
}

.timeline-toggle.collapsed {
    transform: rotate(-90deg);
}

.timeline-content {
    padding: 16px 20px;
    max-height: 400px;
    overflow-y: auto;
}

.timeline-content.collapsed {
    display: none;
}

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

.timeline-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-days {
    min-width: 60px;
    font-weight: 600;
    margin-right: 16px;
}

.timeline-days.urgent {
    color: #d32f2f;
}

.timeline-days.soon {
    color: #f57c00;
}

.timeline-days.upcoming {
    color: #388e3c;
}

.timeline-details {
    flex: 1;
}

.timeline-school {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.timeline-label {
    font-size: 14px;
    color: #666;
}

.timeline-date {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.timeline-priority {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.timeline-priority.first-choice {
    background: #28a745;
    color: white;
}

.timeline-priority.love-letter {
    background: #e91e63;
    color: white;
}

.timeline-priority.backup {
    background: #fd7e14;
    color: white;
}

.timeline-empty {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

/* Demo Timeline Widget */
.demo-timeline-widget {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 30px;
}

.demo-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.demo-timeline-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-timeline-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
}

.demo-timeline-filter input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.demo-timeline-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.demo-badge {
    background: #28a745;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.demo-timeline-content {
    padding: 16px 20px;
}

.demo-timeline-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.demo-timeline-item:last-child {
    border-bottom: none;
}

.demo-timeline-days {
    min-width: 60px;
    font-weight: 600;
    margin-right: 16px;
    font-size: 14px;
}

.demo-timeline-days.urgent {
    color: #d32f2f;
}

.demo-timeline-days.soon {
    color: #f57c00;
}

.demo-timeline-days.upcoming {
    color: #388e3c;
}

.demo-timeline-details {
    flex: 1;
}

.demo-timeline-school {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.demo-timeline-label {
    font-size: 13px;
    color: #666;
}

.demo-timeline-date {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.demo-priority {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 500;
}

.demo-priority.first-choice {
    background: #28a745;
    color: white;
}

.demo-priority.love-letter {
    background: #e91e63;
    color: white;
}

.demo-priority.backup {
    background: #fd7e14;
    color: white;
}

.notification-banner {
    background: linear-gradient(90deg, #28a745, #20c997);
    color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.notification-banner.warning {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.dismiss-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.dismiss-btn:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.school-info-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.school-info-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.school-info-header p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.school-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.school-title {
    flex: 1;
}

.school-actions {
    display: flex;
    gap: 0.5rem;
}

.priority-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.priority-first-choice {
    background: #28a745;
    color: white;
}

.priority-love-letter {
    background: #e91e63;
    color: white;
}

.priority-backup {
    background: #fd7e14;
    color: white;
}

.priority-not-interested {
    background: #6c757d;
    color: white;
}

.priority-quick-actions {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.priority-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.priority-buttons {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.priority-btn {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    white-space: nowrap;
    text-align: center;
}

.priority-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.priority-btn.active {
    border-width: 3px;
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* First Choice - Green */
.priority-first-choice-btn {
    color: #28a745;
}

.priority-first-choice-btn:hover {
    border-color: #28a745;
    background: #f8fff9;
}

.priority-first-choice-btn.active {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

/* Love Letter - Pink/Red */
.priority-love-letter-btn {
    color: #e91e63;
}

.priority-love-letter-btn:hover {
    border-color: #e91e63;
    background: #fef7f7;
}

.priority-love-letter-btn.active {
    border-color: #e91e63;
    background: #fde2e7;
    color: #c2185b;
}

/* Backup - Orange */
.priority-backup-btn {
    color: #fd7e14;
}

.priority-backup-btn:hover {
    border-color: #fd7e14;
    background: #fff9f5;
}

.priority-backup-btn.active {
    border-color: #fd7e14;
    background: #ffeaa7;
    color: #dc6502;
}

/* Not Interested - Gray */
.priority-not-interested-btn {
    color: #6c757d;
}

.priority-not-interested-btn:hover {
    border-color: #6c757d;
    background: #f8f9fa;
}

.priority-not-interested-btn.active {
    border-color: #6c757d;
    background: #e9ecef;
    color: #495057;
}

.school-details {
    display: grid;
    gap: 0.75rem;
    color: #666;
    font-size: 0.9rem;
    padding: 1rem;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.school-details p {
    margin: 0;
    line-height: 1.4;
}

.school-details p strong {
    color: #333;
    font-weight: 600;
    margin-right: 0.25rem;
}

.school-details a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.school-details a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.school-description {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.school-description p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}

.school-description .desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-description .desc-text.expanded {
    display: block !important;
    -webkit-line-clamp: none !important;
    overflow: visible !important;
}

.school-description .desc-text.collapsed {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.show-more-btn {
    color: #3498db !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    font-size: 0.85rem !important;
    padding: 0 !important;
    margin-left: 0.5rem !important;
}

.show-more-btn:hover {
    color: #2980b9 !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    margin: 0;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #e74c3c;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.applications-list {
    display: grid;
    gap: 1rem;
}

.application-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blurb-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    line-height: 1.6;
}

.blurb-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.generate-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.generate-options {
    display: grid;
    gap: 1rem;
}

.prompt-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
    resize: vertical;
}

.prompt-templates {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.template-chip {
    padding: 0.5rem 1rem;
    background: #ecf0f1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.template-chip:hover {
    background: #3498db;
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-draft {
    background: #95a5a6;
    color: white;
}

.status-submitted {
    background: #3498db;
    color: white;
}

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

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

.status-rejected {
    background: #e74c3c;
    color: white;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 1rem 0;
}

.error-message p {
    margin: 0.5rem 0;
}

.error-message p:first-child {
    font-weight: 500;
}

/* Modern Modal System - Apple-inspired Design */
.modern-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-modal.show {
    display: flex;
    opacity: 1;
}

.modern-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modern-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 24px;
    margin: auto;
    max-width: 90%;
    width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modern-modal.show .modern-modal-content {
    transform: scale(1);
}

/* Different modal sizes */
.alert-modal {
    width: 320px;
    text-align: center;
}

.confirm-modal {
    width: 360px;
    text-align: center;
}

.prompt-modal {
    width: 500px;
}

.prompt-large-modal {
    width: 600px;
    max-width: 90%;
}

/* Modal Icons */
.modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.alert-icon {
    background: #fff3cd;
    color: #856404;
}

.confirm-icon {
    background: #cce5ff;
    color: #004085;
}

/* Modal Typography */
.modern-modal h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.2;
}

.modern-modal p {
    margin: 0 0 24px;
    font-size: 15px;
    color: #6e6e73;
    line-height: 1.5;
    white-space: pre-line;
}

/* Modal Inputs */
.prompt-input-wrapper {
    margin-bottom: 24px;
}

.prompt-input,
.prompt-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    background: #f5f5f7;
}

.prompt-input:focus,
.prompt-textarea:focus {
    outline: none;
    border-color: #0071e3;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.prompt-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.alert-modal .modal-actions {
    justify-content: center;
}

/* Modal Buttons - Apple Style */
.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-btn-primary {
    background: #0071e3;
    color: white;
}

.modal-btn-primary:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.modal-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.3);
}

.modal-btn-secondary {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.modal-btn-secondary:hover {
    background: #e8e8ed;
    border-color: #c2c2c7;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    transform: translateX(420px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #34c759;
}

.toast.error {
    border-left: 4px solid #ff3b30;
}

.toast.warning {
    border-left: 4px solid #ff9500;
}

.toast-icon {
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 14px;
    color: #6e6e73;
}

.toast-close {
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 4px;
    margin: -4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

/* Mobile Responsiveness for Modals */
@media (max-width: 768px) {
    .modern-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
        padding: 20px;
    }
    
    .prompt-large-modal {
        width: calc(100% - 40px);
    }
    
    .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .modal-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 17px;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 20px;
    }
    
    .toast {
        max-width: none;
        width: 100%;
        transform: translateY(120%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* Improved form styling */
.auth-form input {
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    transition: all 0.2s ease;
}

.auth-form input:focus {
    background: white;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* Better button styling throughout */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

/* Improved school card styling */
.school-card {
    border: 1px solid #d2d2d7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.school-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Modern Notes Modal Design */
.modern-notes-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
    max-width: 800px;
    width: 90%;
    max-height: calc(100vh - 40px);
    height: auto;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
}

.notes-modal-content {
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e7;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #86868b;
    cursor: pointer;
    padding: 4px;
    margin: -4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #e8e8ed;
    color: #1d1d1f;
}

.school-info-banner {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: white;
    padding: 16px 24px;
    border: none;
}

.school-info-banner h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.school-info-banner p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.notes-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.notes-tabs {
    display: flex;
    gap: 2px;
    padding: 16px 24px 0;
    background: #f5f5f7;
}

.notes-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #86868b;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: all 0.2s ease;
    position: relative;
}

.notes-tab:hover {
    color: #1d1d1f;
}

.notes-tab.active {
    background: white;
    color: #007aff;
}

.notes-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007aff;
}

.notes-content {
    flex: 1;
    overflow-y: auto;
    background: white;
    padding: 24px;
    min-height: 0; /* Allow flex child to shrink */
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.form-section {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.label-icon {
    color: #86868b;
}

.success-label .label-icon {
    color: #34c759;
}

.warning-label .label-icon {
    color: #ff9500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    background: #f5f5f7;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #007aff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    line-height: 1.5;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.notes-form .form-actions {
    padding: 16px 24px;
    background: #f9f9f9;
    border-top: 1px solid #e5e5e7;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-top: auto;
}

/* Mobile responsiveness for notes modal */
@media (max-width: 768px) {
    .modern-notes-modal .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .notes-tabs {
        padding: 12px 16px 0;
        gap: 1px;
    }
    
    .notes-tab {
        font-size: 14px;
        padding: 10px 8px;
    }
    
    .notes-content {
        padding: 16px;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Community Insights Styling */
.insights-subtitle {
    color: #6e6e73;
    margin-bottom: 2rem;
    font-size: 16px;
}

/* Opt-in Card */
.insights-opt-in {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.opt-in-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
}

.opt-in-card h3 {
    margin-bottom: 1rem;
    color: #1d1d1f;
    font-size: 24px;
}

.opt-in-card ul {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.opt-in-card li {
    padding: 0.5rem 0;
    color: #424245;
}

.privacy-note {
    background: #f5f5f7;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.opt-in-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Insights Dashboard */
.insights-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
}

.stat-card h4 {
    font-size: 24px;
    font-weight: 600;
    color: #007aff;
    margin: 0 0 0.5rem 0;
}

.stat-card p {
    margin: 0;
    color: #6e6e73;
    font-size: 14px;
}

/* Insights Tabs */
.insights-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e5e7;
}

.insights-tab {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: #6e6e73;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.insights-tab.active {
    color: #007aff;
    border-bottom-color: #007aff;
}

.insights-tab:hover {
    color: #1d1d1f;
}

/* Insight Cards */
.insight-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.insight-header h4 {
    margin: 0;
    color: #1d1d1f;
    font-size: 18px;
}

.competition-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.competition-level {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.competition-level.low {
    background: #34c759;
}

.competition-level.medium {
    background: #ff9500;
}

.competition-level.high {
    background: #ff3b30;
}

.competition-level.very-high {
    background: #8e44ad;
}

.competitor-count {
    font-size: 16px;
    font-weight: 500;
    color: #424245;
}

.breakdown {
    color: #6e6e73;
    border-top: 1px solid #f5f5f7;
    padding-top: 0.5rem;
}

/* Popular Schools Styling */
.rank-number {
    color: #007aff;
    font-weight: 600;
    margin-right: 0.5rem;
}

.popularity-stats {
    font-size: 16px;
    font-weight: 500;
    color: #424245;
}

.school-type-badge {
    background: #f5f5f7;
    color: #6e6e73;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Recommendation Cards */
.recommendation-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
    border-left: 4px solid #007aff;
}

.recommendation-header h4 {
    margin: 0 0 0.5rem 0;
    color: #1d1d1f;
    font-size: 18px;
}

.school-metadata {
    color: #6e6e73;
    font-size: 14px;
    margin-bottom: 1rem;
}

.recommendation-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.similarity-info {
    font-size: 14px;
    color: #424245;
    font-weight: 500;
}

.recommendation-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 14px;
}
}

/* Popular Schools */
.popular-school-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
}

.rank {
    font-size: 24px;
    font-weight: 700;
    color: #007aff;
    min-width: 50px;
}

.school-info {
    flex: 1;
}

.school-info h4 {
    margin: 0 0 0.25rem 0;
    color: #1d1d1f;
}

.school-info p {
    margin: 0;
    color: #6e6e73;
    font-size: 14px;
}

.popularity-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stat {
    text-align: center;
    min-width: 60px;
}

.stat strong {
    display: block;
    font-size: 18px;
    color: #007aff;
}

.stat small {
    color: #6e6e73;
    font-size: 12px;
}

/* Insights Actions */
.insights-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e7;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Mobile Responsiveness for Insights */
@media (max-width: 768px) {
    .opt-in-actions {
        flex-direction: column;
    }
    
    .insights-stats {
        grid-template-columns: 1fr;
    }
    
    .insights-tabs {
        gap: 0.5rem;
    }
    
    .insights-tab {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
    
    .competition-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .popular-school-card {
        flex-direction: column;
        text-align: center;
    }
    
    .popularity-stats {
        justify-content: center;
    }
    
    .insights-actions {
        flex-direction: column;
    }
}

/* Security Questions Banner */
.security-questions-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banner-text strong {
    font-size: 16px;
    font-weight: 600;
}

.banner-text span {
    font-size: 14px;
    opacity: 0.9;
}

.banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-text {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-text:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Enhanced Modal Styling */
.modern-notes-modal .modal-content {
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.05);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.025em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.modal-header .close-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 113, 227, 0.2);
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    backdrop-filter: blur(10px);
}

.modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.15);
    border-color: rgba(0, 113, 227, 0.3);
}

/* Specific modal title styling with icons */
#feedbackModal .modal-header h2::before {
    content: "💬";
    margin-right: 12px;
    font-size: 1.5rem;
}

#securityQuestionsModal .modal-header h2::before {
    content: "🔐";
    margin-right: 12px;
    font-size: 1.5rem;
}


/* All modals now use consistent blue background - specific overrides removed for consistency */


/* Security Questions Setup Modal */
.setup-intro {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 32px;
    border-left: 4px solid #0071e3;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.1);
}

.setup-intro p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.security-question-group {
    margin-bottom: 32px;
    padding: 24px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.security-question-group:hover {
    border-color: #0071e3;
}

.security-question-group:last-child {
    margin-bottom: 0;
}

.security-question-group .form-label {
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.security-question-group .form-input {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.security-question-group .form-input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    outline: none;
}

.security-question-group .form-input:last-child {
    margin-bottom: 0;
}

/* Enhanced Form Styling */
.form-section {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-input:focus, .form-textarea:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    outline: none;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Enhanced Button Styling */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
    margin-top: 32px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-primary {
    background: #0071e3;
    color: white;
}

.btn-primary:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* Header buttons should keep their colorful styling */
.nav-links .btn-secondary,
.tabs-right .btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: none;
    font-weight: 600;
}

.nav-links .btn-secondary:hover,
.tabs-right .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Modal buttons use the subtle gray styling */
.modal .btn-secondary,
.form-actions .btn-secondary {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.modal .btn-secondary:hover,
.form-actions .btn-secondary:hover {
    background: #e8e8ed;
    border-color: #c2c2c7;
}

/* Specific Modal Improvements */
#forgotPasswordModal .modal-content,
#feedbackModal .modal-content,
#securityQuestionsModal .modal-content {
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin-top: 0;
    margin-bottom: 20px;
}

#forgotPasswordModal p,
#feedbackModal p,
#securityQuestionsModal p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

/* Forgot Password Step Styling */
#forgotPasswordStep1,
#forgotPasswordStep2,
#forgotPasswordStep3 {
    min-height: 200px;
}

#securityQuestionsContainer {
    margin: 24px 0;
}

#securityQuestionsContainer .form-group {
    background: #fafbfc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
}

#securityQuestionsContainer .form-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

/* Enhanced Rating Select */
#feedbackRating {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 15px;
}

#feedbackRating:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    outline: none;
}

/* Pre-filled email styling */
.prefilled-email {
    background: #f0f8ff !important;
    border-color: #0071e3 !important;
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .banner-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-small {
        flex: 1;
        text-align: center;
    }
}

/* Loading Schools Animation */
.loading-schools {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid #e1e8f0;
}

.loading-schools h3 {
    margin: 1rem 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.loading-schools p {
    color: #6c7b7f;
    font-size: 1rem;
    margin: 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e1e8f0;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    z-index: 1000;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}