/* assets/css/style.css - Futuristic Glassmorphism + Neumorphism, Responsive */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', sans-serif;
}

body {
    background: radial-gradient(circle at 10% 30%, #0a0f1e, #03060c);
    min-height: 100vh;
    color: #eef5ff;
}

.glass-card {
    background: rgba(20, 30, 55, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    border: 1px solid rgba(80, 140, 255, 0.25);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: all 0.2s ease;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.8rem;
    background: rgba(12, 18, 34, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a0e9ff, #6b8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-primary, .btn-secondary, .btn-outline {
    padding: 0.7rem 1.5rem;
    border-radius: 44px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(95deg, #3b5eff, #7c4dff);
    color: white;
    box-shadow: 0 5px 15px rgba(59,94,255,0.3);
}

.btn-secondary {
    background: rgba(50,70,120,0.7);
    color: white;
    border: 1px solid #5f7eff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #5f7eff;
    color: #bbd9ff;
}

.glass-input {
    background: rgba(10, 20, 35, 0.6);
    border: 1px solid rgba(90, 150, 255, 0.5);
    border-radius: 24px;
    padding: 14px 18px;
    width: 100%;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group label {
    position: absolute;
    left: 18px;
    top: -10px;
    background: #0a1020;
    padding: 0 8px;
    font-size: 0.75rem;
    color: #8aabff;
}

/* Login page */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.login-card {
    max-width: 460px;
    width: 100%;
    padding: 2rem;
    text-align: center;
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
    border-radius: 28px;
    background: rgba(0,0,0,0.25);
    margin: 1.5rem 0;
}
.student-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}
.student-table th, .student-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(100,150,255,0.2);
}
.photo-cell img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 16px;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-green { background: #00c85330; color: #a2ffb0; border-left: 3px solid #00e676; }
.status-red { background: #ff3b3030; color: #ffaea5; border-left: 3px solid #ff3b30; }
.photo-red { background: #ff1a1a08; }
.photo-green { background: #00ff4410; }

/* Responsive Grid */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.student-card {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    gap: 1rem;
}
@media (max-width: 640px) {
    .students-grid { grid-template-columns: 1fr; }
    .glass-nav { flex-direction: column; gap: 0.8rem; }
    .action-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}

.modal {
    display: none;
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    max-width: 500px;
    width: 90%;
    padding: 1.8rem;
    position: relative;
}
.close, .close-upload, .close-import, .close-parent-upload {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}
.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}
.full-width { grid-column: span 2; }
@media (max-width: 520px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.page-btn {
    padding: 8px 14px;
    background: #1e2a4e;
    border: none;
    border-radius: 40px;
    color: white;
}
.preview-thumb { max-width: 100px; border-radius: 20px; margin-top: 12px; }
.btn-whatsapp { background: #25D366; padding: 12px; border-radius: 44px; display: inline-block; margin: 10px 0; text-decoration: none; color: white; }



/* Parent portal - Student card image fix */
.student-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem;
    flex-wrap: wrap;
}

.student-photo-area {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.no-photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
}

.no-photo-card button {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    background: #3b5eff;
    border: none;
    border-radius: 30px;
    color: white;
    cursor: pointer;
}

.student-details {
    flex: 1;
    min-width: 180px;
}

.student-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.student-details p {
    margin: 0.3rem 0;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.student-details p span {
    font-weight: 600;
    color: #8aabff;
    min-width: 80px;
}

/* For mobile: stack vertically */
@media (max-width: 550px) {
    .student-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .student-details p {
        justify-content: center;
    }
    .student-details p span {
        min-width: auto;
    }
}