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

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #ffffff;
    height: 100svh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.app-container {
    padding-top: env(safe-area-inset-top, 45px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-top: 15px;
}

.back-btn {
    background: none;
    border: none;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 30px;
}

.icon-back {
    width: 22px;
    height: 22px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.ucsp-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-shield {
    width: 26px;
    height: 30px;
}

.logo-text {
    color: #1b499e;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.page-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.content {
    flex-grow: 1;
    position: relative;
    
    /* 1. Change overflow to allow horizontal scrolling */
    overflow-x: auto;
    overflow-y: hidden; 
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    
    /* 2. Hide scrollbars across different browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 3. Hide scrollbars for Chrome, Safari, and newer Edge */
.content::-webkit-scrollbar {
    display: none;
}

.id-card {
    position: relative;
    width: 100%;
    
    /* 4. Add a min-width large enough to contain your absolute elements 
       (left: 235px + width: 300px = 535px) */
    min-width: 550px; 
    
    height: 300px;
}

.vertical-center {
    position: relative;
    width: 100%;
    margin-top: -100px; /* Offset to perfectly center between header and QR */
}

.avatar-section {
    position: absolute;
    left: -40px; /* Adjusted offset due to smaller size */
    top: 5px; /* Vertically align with student-info (which is top: 5px) */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 187px;
}

.avatar-circle {
    width: 187px; /* 250px * 0.75 */
    height: 187px;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-icon {
    width: 100%;
    height: 100%;
}

.bottom-badges {
    margin-top: 5px;
}

.regular-badge {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.student-info {
    position: absolute;
    left: 135px;
    top: 5px;
    z-index: 2;
    width: 200px;
}

.student-name {
    font-weight: 300;
    font-size: 24px;
    line-height: 1.1;
    color: #222;
    margin-bottom: 20px;
}

.student-details {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
}

.detail-label, .detail-value {
    font-weight: 300;
    font-size: 18px;
    color: #555;
    line-height: 1.1;
}

.detail-label {
    margin-bottom: 2px;
}

.detail-value {
    margin-bottom: 5px;
}

.student-status {
    margin-top: 0px;
}

.status-main {
    font-weight: 300;
    font-size: 18px;
    color: #555;
    margin-bottom: 2px;
    line-height: 1.15;
}

.light-text {
    font-weight: 300;
    font-size: 16px;
    color: #999;
    margin-bottom: 2px;
    line-height: 1.15;
}

.time-overlay {
    position: absolute;
    left: 235px; /* Roughly aligned to obscure the end of text */
    top: 85px;
    text-align: left;
    z-index: 10;
    background: linear-gradient(90deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,1) 15%, rgba(255,255,255,1) 100%);
    width: 300px;
    height: 120px;
    padding-left: 20px;
}

.clock {
    font-size: 48px;
    font-weight: 300;
    color: #333;
    letter-spacing: -2px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.date {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    margin-top: 0px;
    letter-spacing: -0.5px;
    padding-left: 2px;
    white-space: nowrap;
}

.qr-button-container {
    position: absolute;
    bottom: 30px;
    right: 20px;
}

.qr-button {
    background-color: #2b55b2;
    border: none;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.qr-icon {
    width: 26px;
    height: 26px;
}
