/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== HEADER & FOOTER ========== */
header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    color: #764ba2;
    font-size: 1.2em;
    font-weight: 500;
}

footer {
    text-align: center;
    color: white;
    font-size: 1.1em;
    margin-top: 40px;
    padding: 20px;
}

/* ========== MODULES GRID ========== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.module-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.module-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.module-card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.module-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: scale(1.05);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: scale(1.05);
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
    transform: scale(1.05);
}

.btn-submit {
    background: #28a745;
    color: white;
    padding: 10px 25px;
    font-size: 0.95em;
}

.btn-submit:hover {
    background: #218838;
    transform: scale(1.05);
}

.btn-back {
    background: rgba(255, 255, 255, 0.8);
    color: #667eea;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    header {
        padding: 20px;
        margin-bottom: 30px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .modules-grid {
        gap: 20px;
        margin: 20px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .module-icon {
        font-size: 3em;
    }

    .module-card h2 {
        font-size: 1.5em;
    }
}
