:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-gray: #ecf0f1;
    --medium-gray: #bdc3c7;
    --dark-gray: #7f8c8d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 5px 5px 0 0;
    margin-bottom: 20px;
}

.header-title {
    font-size: 24px;
    font-weight: 600;
}

.dimension-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-bottom: none;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
    font-weight: 600;
    color: var(--secondary-color);
}

.tab:hover:not(.active) {
    background-color: #e0e0e0;
}

.dimension-content {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dimension-content.active {
    display: block;
}

.dimension-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.dimension-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dimension-themes {
    font-style: italic;
    color: var(--dark-gray);
}

.instructions {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.questionnaire-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.questionnaire-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.questionnaire-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
    vertical-align: top;
}

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

.questionnaire-table tr:hover {
    background-color: #f1f1f1;
}

.sr-col {
    width: 50px;
    text-align: center;
    font-weight: 600;
}

.indicators-col {
    width: 60%;
}

.score-col {
    width: 20%;
}

.rating-col {
    width: 20%;
}

.star-rating {
    display: flex;
    justify-content: center;
}

.star {
    color: var(--medium-gray);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.star.selected {
    color: var(--warning-color);
}

.star:hover {
    color: var(--warning-color);
}

select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

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

.btn-secondary {
    background-color: var(--medium-gray);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #95a5a6;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #219955;
}
/* Add these to the existing css.txt file */

/* School Info Section */
.school-info {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.school-info h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.school-info input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 14px;
}

.school-info input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
/* Style for disabled tabs */
.tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

/* Style for the Next Dimension button */
.btn-next {
    background-color: #27ae60;
    color: white;
}

.btn-next:hover:not(:disabled) {
    background-color: #219955;
}

.btn-next:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Enhanced Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .star {
        font-size: 32px; /* small phones */
    }


    
    header {
        padding: 10px;
        border-radius: 0;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .dimension-header, 
    .instructions {
        padding: 10px;
    }
    
    .dimension-title {
        font-size: 18px;
    }
    
    .questionnaire-table {
        font-size: 14px;
    }
    
    .questionnaire-table th,
    .questionnaire-table td {
        padding: 8px 5px;
    }
    
    .sr-col {
        width: 30px;
    }
    
    .indicators-col {
        min-width: 200px;
    }
    
    .score-col,
    .rating-col {
        min-width: 100px;
    }
    
    select {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .star {
        font-size: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .tab {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .dimension-tabs {
        overflow-x: auto;
        white-space: nowrap;
        display: block;
        padding-bottom: 5px;
    }
    .star {
        font-size: 24px; /* was 14px, increased for very small screens */
    }
    
    .tab {
        display: inline-block;
        margin-right: 3px;
        margin-bottom: 0;
    }
    
    .questionnaire-table {
        font-size: 13px;
    }
    
    .questionnaire-table th,
    .questionnaire-table td {
        padding: 6px 3px;
    }
    
    .star {
        font-size: 14px;
    }
}

/* Prevent horizontal scrolling on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Improve form input appearance on mobile */
input, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}
.tab.disabled {
    cursor: not-allowed;
    background-color: #ddd;
    color: #999;
}

/* Responsive styles */
@media (max-width: 768px) {
    .dimension-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    .star {
        font-size: 28px; /* medium mobile screens */
    }


    .tab {
        border-radius: 0;
        border: 1px solid var(--medium-gray);
        margin-right: 0;
        margin-bottom: 5px;
    }

    .tab.active {
        border-bottom: 1px solid var(--medium-gray);
    }
/*
    .questionnaire-table {
        display: block;
        overflow-x: auto;
    }

    .indicators-col {
        min-width: 300px;
    }

    .score-col, .rating-col {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .dimension-header, .instructions {
        padding: 10px;
    }

    .questionnaire-table td, .questionnaire-table th {
        padding: 10px 5px;
        font-size: 14px;
    }

    .action-buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    } 
        */
/* Mobile-friendly table: stack columns */
@media (max-width: 768px) {
    .questionnaire-table,
    .questionnaire-table thead,
    .questionnaire-table tbody,
    .questionnaire-table th,
    .questionnaire-table td,
    .questionnaire-table tr {
        display: block;
        width: 100%;
    }

    .questionnaire-table thead {
        display: none; /* hide table headers on mobile */
    }

    .questionnaire-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--light-gray);
        border-radius: 5px;
        padding: 10px;
        background: #fff;
    }

    .questionnaire-table td {
        border: none;
        padding: 8px 5px;
    }

    .sr-col {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .indicators-col {
        margin-bottom: 10px;
        font-weight: 500;
        color: var(--primary-color);
    }

    .score-col,
    .rating-col {
        margin-bottom: 8px;
    }

    /* Stack score and stars nicely */
    .score-col select {
        width: 100%;
    }

    .rating-col .star-rating {
        justify-content: flex-start;
    }
}
  
}