:root {
    --primary: #55aa55; /* Minecraft Green */
    --primary-light: #6bc96b;
    --accent: #55ffff; /* Diamond Blue */
    --bg-soft: #87CEEB; /* Sky blue */
    --glass-bg: #8b5a2b; /* Wood */
    --glass-border: #111111;
    --text-primary: #ffffff;
    --text-secondary: #ffff55; /* Yellow text */
    --card-radius: 0px; /* Blocky */
    --font-main: 'Alexandria', sans-serif;
    --transition: all 0.1s;
    --shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    --shadow-hover: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-soft);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Hide old mesh background */
.mesh-background {
    display: none;
}

/* --- Layout --- */
.main-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 24px;
    z-index: 10;
}

.section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* --- Minecraft Block Card (Login) --- */
.glass-card {
    background: var(--glass-bg);
    border: 4px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 60px 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 
        inset -5px -5px 0px 0px #5c3a21,
        inset 5px 5px 0px 0px #a67c52,
        8px 8px 0px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: var(--transition);
}

.card-glow {
    display: none; /* Removed */
}

.logo-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.brand-header h1 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-shadow: 3px 3px 0px #333;
}

.tagline {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 50px;
    font-weight: 900;
    text-shadow: 1px 1px 0px #333;
}

.instruction {
    font-size: 15px;
    color: #ddd;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 700;
}

/* --- Premium Form --- */
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.field-container input {
    width: 100%;
    background: #dddddd;
    border: 3px solid #111;
    border-radius: var(--card-radius);
    padding: 16px 20px;
    color: #111;
    font-size: 26px;
    text-align: center;
    letter-spacing: 12px;
    transition: var(--transition);
    box-shadow: inset 4px 4px 0px rgba(0,0,0,0.2);
}

.field-container input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
}

.field-container label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 900;
    color: var(--text-secondary);
    text-align: right;
    padding-right: 10px;
    text-shadow: 1px 1px 0px #000;
}

.primary-btn {
    background: #c6c6c6; /* Stone */
    color: #111;
    border: 2px solid #111;
    padding: 18px;
    border-radius: var(--card-radius);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    box-shadow:
        inset -4px -4px 0px 0px #555555,
        inset 4px 4px 0px 0px #ffffff,
        var(--shadow);
    text-shadow: 1px 1px 0px #fff;
}

.primary-btn:hover {
    background: #8faadd;
    transform: translate(2px, 2px);
    box-shadow:
        inset -4px -4px 0px 0px #4a638b,
        inset 4px 4px 0px 0px #b3ccff,
        var(--shadow-hover);
}

.btn-shine {
    display: none;
}

/* --- Dashboard --- */
.dashboard-head {
    text-align: right;
    margin-bottom: 48px;
    width: 100%;
}

.welcome-text h2 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-shadow: 3px 3px 0px #333;
}

.welcome-text p {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 0px #333;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.subject-tile {
    position: relative;
    background: #c6c6c6; /* Stone base */
    border: 4px solid #111;
    border-radius: var(--card-radius);
    padding: 32px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition);
    box-shadow: 
        inset -4px -4px 0px 0px #555555,
        inset 4px 4px 0px 0px #ffffff,
        var(--shadow);
}

.subject-tile:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-hover);
}

/* Specific Block Textures for Subjects */
.subject-tile.arabic {
    background: #8b5a2b; /* Wood */
    box-shadow: inset -4px -4px 0px 0px #5c3a21, inset 4px 4px 0px 0px #a67c52, var(--shadow);
}
.subject-tile.arabic:hover { box-shadow: inset -4px -4px 0px 0px #5c3a21, inset 4px 4px 0px 0px #a67c52, var(--shadow-hover); }

.subject-tile.math {
    background: #6e6e6e; /* Cobblestone */
    box-shadow: inset -4px -4px 0px 0px #3a3a3a, inset 4px 4px 0px 0px #a3a3a3, var(--shadow);
}
.subject-tile.math:hover { box-shadow: inset -4px -4px 0px 0px #3a3a3a, inset 4px 4px 0px 0px #a3a3a3, var(--shadow-hover); }

.subject-tile.science {
    background: #55aa55; /* Leaves/Grass */
    box-shadow: inset -4px -4px 0px 0px #2a552a, inset 4px 4px 0px 0px #80ff80, var(--shadow);
}
.subject-tile.science:hover { box-shadow: inset -4px -4px 0px 0px #2a552a, inset 4px 4px 0px 0px #80ff80, var(--shadow-hover); }

.subject-tile.english {
    background: #c6c6c6; /* Iron/Stone */
}

.subject-tile.social {
    background: #aa5500; /* Red Sand/Dirt */
    box-shadow: inset -4px -4px 0px 0px #552a00, inset 4px 4px 0px 0px #ffaa00, var(--shadow);
}
.subject-tile.social:hover { box-shadow: inset -4px -4px 0px 0px #552a00, inset 4px 4px 0px 0px #ffaa00, var(--shadow-hover); }

.tile-icon {
    width: 65px;
    height: 65px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0;
    border: 2px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.subject-tile:hover .tile-icon {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.tile-info h3 {
    font-size: 22px;
    margin-bottom: 4px;
    color: #fff;
    text-shadow: 2px 2px 0px #111;
}

.tile-info span {
    color: #ffff55;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 1px 1px 0px #111;
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(17, 17, 17, 0.9);
    border: 2px solid #fff;
    padding: 16px 28px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
    color: #fff;
    font-weight: 700;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
}

/* --- Animations --- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-text h2 { font-size: 32px; }
    .subjects-grid { grid-template-columns: 1fr; }
    .glass-card { padding: 40px 24px; }
}
