* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: linear-gradient(135deg, #e9f0fc 0%, #f1f5fe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" opacity="0.03"><path fill="none" d="M14 16H9v-2h5v2zm7 0h-5v-2h5v2zm7 0h-5v-2h5v2zm7 0h-5v-2h5v2zm0-7h-5V7h5v2zm-7 0h-5V7h5v2zm-7 0H9V7h5v2z"/><rect x="21" y="24" width="2" height="2"/><rect x="28" y="31" width="2" height="2"/><rect x="35" y="38" width="2" height="2"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
}

.dashboard {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.edukit-header {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: fadeDown 0.6s ease-out;
}

.edukit-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(145deg, #1a2a3f, #0f2b3d);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.edukit-header h1 img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.edukit-header p {
    color: #4a627a;
    font-weight: 500;
    margin-top: 10px;
    font-size: 1.1rem;
    border-top: 2px solid rgba(44, 110, 158, 0.2);
    display: inline-block;
    padding-top: 0.1rem;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin-top: 1rem;
}

.role-card {
    flex: 1 1 280px;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(0px);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.role-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.0));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 32px 48px -20px rgba(0, 32, 64, 0.25);
    border-color: rgba(44, 110, 158, 0.3);
}

.card-icon {
    width: 120px;
    height: 120px;
    margin: 15px 0;
    padding: 10px;
    transition: transform 0.25s ease;
}

.card-icon img{
    width: 100%;
    height: 100%;
}

.role-card:hover .card-icon { transform: scale(1.02); }
.card-title{
    padding: 10px 0 20px 0;
    width: 100%;
    text-align: center;
    font-size: 22px;
    text-transform: uppercase;
    font-weight: bold;
    color: #0b3550;
}

.admin-card .card-title{
    color: #1e4a6b;
    text-shadow: 0 5px 12px rgba(30, 74, 107, 0.2);
}

.teacher-card .card-title {
    color: #2c6e2f;
    text-shadow: 0 5px 12px rgba(44, 110, 47, 0.15);
}

.student-card .card-title {
    color: #b45309;
    text-shadow: 0 5px 12px rgba(180, 83, 9, 0.2);
}

@media (max-width: 860px) {
    body { padding: 1.5rem; }
    .cards-container { gap: 1.5rem; }
    .role-card { flex: 1 1 260px; }
    .card-title { font-size: 18px; }
    .edukit-header h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .role-card {
        max-width: 380px;
        width: 100%;
    }

    .card-icon { padding: 1.6rem 1rem 0.8rem; }
    .edukit-header { margin-bottom: 2rem; }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.role-card { animation: fadeUp 0.5s ease-out backwards; }
.admin-card { animation-delay: 0.05s; }
.teacher-card { animation-delay: 0.15s; }
.student-card { animation-delay: 0.25s; }
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.role-card:focus-visible {
    outline: 3px solid #1f6ea0;
    outline-offset: 4px;
    border-radius: 2rem;
}