/* SchoolZone Custom Styles */

/* Custom colors and variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* General styles */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* Feature icon styling */
.feature-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

/* Custom button hover effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Navbar customization */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Hero section customization */
.hero-section {
    position: relative;
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

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

/* Footer customization */
footer {
    font-size: 0.9rem;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Map page specific styles */
#map {
    height: 85vh;
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.controls {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.map-container {
    position: relative;
    width: 100%;
}

.legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    line-height: 24px;
    z-index: 1000;
    max-width: 200px;
    position: absolute;
}

#price-legend {
    top: 60px;
    right: 220px;
}

#score-legend {
    top: 60px;
    right: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 1px solid #999;
}

.filter-group {
    margin: 15px 0;
}

.value-table-container {
    position: static;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    padding: 15px;
    margin: 20px auto;
    max-width: 1140px;
    overflow-y: auto;
}

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

#value-table th, #value-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#value-table th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

#value-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#value-table tr:hover {
    background-color: #e9e9e9;
}

/* Subscription features section */
.pricing-card {
    border: none;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: scale(1.03);
}

.pricing-card .card-header {
    background-color: transparent;
    border-bottom: none;
    padding-bottom: 0;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-card .period {
    font-size: 0.8rem;
    color: #6c757d;
}

.pricing-card .feature-list {
    margin: 30px 0;
}

.pricing-card .feature-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pricing-card .feature-item:last-child {
    border-bottom: none;
}

.pricing-card .feature-check {
    color: #28a745;
    margin-right: 10px;
}

.pricing-card .feature-unavailable {
    color: #6c757d;
    text-decoration: line-through;
}

/* About page specific styles */
.team-member-img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Range slider customization */
.custom-range {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    margin-top: -6px;
    border: 2px solid white;
}

.custom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 2px solid white;
}

.custom-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .value-table-container {
        margin: 20px 0;
    }
    
    #map {
        height: 60vh;
    }
    
    .legend {
        max-width: 150px;
        font-size: 0.8rem;
    }
    
    #price-legend {
        top: 60px;
        right: 170px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .pricing-card {
        margin-bottom: 20px;
    }
    
    .team-member-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    #price-legend {
        top: 60px;
        right: 10px;
        max-width: 140px;
    }
    
    #score-legend {
        top: 190px;
        right: 10px;
        max-width: 140px;
    }
}