/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Touchscreen Home Styles - Portrait 1080x1920 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    /* Remove fixed width and height for better responsiveness */
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    /* Add responsive scaling */
    font-size: clamp(14px, 1.5vw, 18px);
}

/* Add viewport meta tag support */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Header Styles */
.header-container {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 2rem 0 8rem;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.header-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: #ffffff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.header-content {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
    flex-direction: column;
    gap: 2rem;
    min-height: 200px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-direction: column;
}

.logo-img {
    width: clamp(80px, 10vw, 120px);
    height: clamp(80px, 10vw, 120px);
    border-radius: 50%;
    background: white;
    padding: 0.75rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.header-text {
    color: white;
    text-align: center;
}

.header-text h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

.header-text p {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Main Content */
.main-content {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
    position: relative;
    z-index: 2;
    background: #ffffff;
}

/* Survey Section */
.survey-section {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.survey-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 800;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.survey-period {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: #666;
    margin-bottom: 2.5rem;
}

/* Satisfaction Cards */
.satisfaction-cards {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.satisfaction-card {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 2rem;
    border-radius: 1.25rem;
    text-align: center;
    min-width: clamp(200px, 25vw, 280px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
    flex: 1;
    max-width: 350px;
}

.satisfaction-card.quality {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
}

.satisfaction-card h3 {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 1rem;
    opacity: 0.9;
    color: white;
}

.satisfaction-score {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: bold;
    margin: 1rem 0;
    color: white;
}

.satisfaction-grade {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: bold;
    margin: 1rem 0;
    color: white;
}

.satisfaction-label {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: bold;
    margin-top: 0.5rem;
    color: white;
}

/* Start Survey Button */
.start-survey-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: bold;
    border-radius: 3rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
}

.start-survey-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.6);
}

.start-survey-btn:active {
    transform: translateY(0);
}

/* Statistics Section */
.statistics-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-table {
    width: 100%;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.stat-row:last-child {
    border-bottom: none;
}

/* Satisfaction Index Card - Green Theme */
.stat-card:first-child {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.4);
}

.stat-card:first-child h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-align: center;
}

.stat-card:first-child .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.4rem);
}

.stat-card:first-child .stat-value {
    font-weight: bold;
    font-size: clamp(1rem, 2vw, 1.6rem);
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    min-width: 80px;
    text-align: center;
}

.stat-card:first-child .stat-row {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Education Level Card - Purple Theme */
.stat-card:last-child {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.4);
}

.stat-card:last-child h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-align: center;
}

.stat-card:last-child .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.4rem);
}

.stat-card:last-child .stat-value {
    font-weight: bold;
    font-size: clamp(1rem, 2vw, 1.6rem);
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    min-width: 80px;
    text-align: center;
}

.stat-card:last-child .stat-row {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Service Quality Indicators */
.service-indicators {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.service-indicator {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-radius: 1.75rem;
    color: white;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-indicator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: rgba(255,255,255,0.4);
}

.service-indicator .indicator-code {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: bold;
    margin-right: 1.25rem;
    min-width: 60px;
}

.service-indicator .indicator-text {
    flex: 1;
    font-size: clamp(1rem, 2vw, 1.6rem);
}

.service-indicator .indicator-score {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: bold;
}

/* Color variations for service indicators */
.service-indicator.u1 { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.service-indicator.u2 { background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); }
.service-indicator.u3 { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
.service-indicator.u4 { background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%); }
.service-indicator.u5 { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }
.service-indicator.u6 { background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); }
.service-indicator.u7 { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.service-indicator.u8 { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.service-indicator.u9 { background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%); }

/* Admin Access Button */
.admin-access-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(52, 73, 94, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-access-btn:hover {
    background: rgba(52, 73, 94, 1);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.admin-access-btn i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .admin-access-container {
        bottom: 15px;
        right: 15px;
    }
    
    .admin-access-btn {
        padding: 0.6rem 0.85rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .admin-access-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 1080px) {
    .header-container {
        padding: 2rem 0 7rem;
        min-height: 280px;
    }
    
    .header-container::before {
        height: 5.5rem;
    }
    
    body {
        width: 100%;
        font-size: 16px;
    }
    
    .header-content {
        max-width: 95%;
        padding: 0 1rem;
    }
    
    .main-content {
        max-width: 95%;
        padding: 0 1rem 2rem 1rem;
    }
    
    .satisfaction-cards {
        gap: 1rem;
        /* Tetap 2 kolom pada resolusi hingga 1080px */
        flex-direction: row;
    }
    
    .satisfaction-card {
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    /* Keep 2-column layout for tablets and up */
    .statistics-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1.5rem 0 6rem;
        min-height: 250px;
    }
    
    .header-container::before {
        height: 4.5rem;
    }
    
    .header-content {
        gap: 1.5rem;
        min-height: 180px;
        padding: 0 1.5rem;
    }
    
    .logo-section {
        gap: 1.5rem;
    }
    
    .header-text {
        text-align: center;
    }
    
    .satisfaction-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .satisfaction-card {
        width: 100%;
        max-width: 400px;
    }
    
    /* Switch to single column only on mobile */
    .statistics-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-indicator {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .service-indicator .indicator-code {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1.5rem 0 5rem;
        min-height: 220px;
    }
    
    .header-container::before {
        height: 4rem;
    }
    
    .header-content {
        gap: 1.25rem;
        min-height: 160px;
        padding: 0 1rem;
    }
    
    .logo-section {
        gap: 1.25rem;
    }
    
    .header-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
    }
    
    .header-text p {
        font-size: 1rem;
    }
}

/* Samsung S20 and similar narrow screens */
@media (max-width: 414px) {
    .header-container {
        padding: 1.5rem 0 4.5rem;
        min-height: 200px;
    }
    
    .header-container::before {
        height: 3.5rem;
    }
    
    .header-content {
        gap: 1rem;
        min-height: 140px;
        padding: 0 1rem;
    }
    
    .logo-section {
        gap: 1rem;
    }
    
    .logo-img {
        width: 70px;
        height: 70px;
        padding: 0.5rem;
    }
}

/* Extra narrow screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .header-container {
        padding: 1.25rem 0 4rem;
        min-height: 180px;
    }
    
    .header-container::before {
        height: 3rem;
    }
    
    .header-content {
        gap: 0.75rem;
        min-height: 120px;
        padding: 0 0.75rem;
    }
    
    .logo-section {
        gap: 0.75rem;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
        padding: 0.4rem;
    }
    
    .header-text h1 {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }
    
    .header-text p {
        font-size: 0.9rem;
    }
}

/* Ensure proper scaling on all devices */
@media screen and (max-width: 1080px) {
    html {
        font-size: calc(14px + (18 - 14) * ((100vw - 320px) / (1080 - 320)));
    }
}
