.role-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
.role-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}
.role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.role-card:active {
    transform: translateY(-2px);
}
.role-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    transition: 0.3s;
}
.role-card:hover .role-icon {
    transform: scale(1.05) rotate(2deg);
}
.icon-student {
    background: linear-gradient(135deg, #4361ee, #5a75f5);
}
.icon-teacher {
    background: linear-gradient(135deg, #06d6a0, #1bd7a4);
}
.icon-manager {
    background: linear-gradient(135deg, #ff6b6b, #ff8585);
}
.role-content {
    flex: 1;
}
.role-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}
.role-desc {
    font-size: 0.9rem;
    color: var(--dark-light);
    line-height: 1.5;
}
.role-arrow {
    color: var(--dark-light);
    font-size: 1.2rem;
    transition: 0.3s;
}
.role-card:hover .role-arrow {
    color: var(--primary);
    transform: translateX(-4px);
}
.student-guide-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.student-guide-modal.active {
    display: flex;
}
.guide-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalAppear 0.3s ease;
}
.guide-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.guide-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}
.guide-header h3 i{
    margin-left: 8px;
}
.guide-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.guide-close:hover {
    background: rgba(255,255,255,0.2);
    color: rgb(238, 104, 104);
}
.guide-body {
    padding: 1.5rem;
}
.guide-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.guide-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.step-text {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.5;
}
.warning-inline {
    background: var(--warning-light);
    border-right: 3px solid var(--warning);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.guide-input-group {
    margin-top: 1rem;
}
.guide-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}
.guide-input-group .form-control {
    width: 100%;
    padding: 1rem;
}
.guide-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}
.btn{
    padding: 1rem 1.5rem;
}
@media (max-width: 768px) {
    .role-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .role-title {
        font-size: 1rem;
    }
    .role-desc {
        font-size: 0.75rem;
    }
}
@media (max-width: 425px) {
    .guide-header {
        padding: 1rem;
    }
    .guide-header h3 {
        font-size: .9rem;
    }
    .step-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .step-text {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    .warning-inline {
        padding: 0.5rem .75rem;
        margin-bottom: 1.5rem;
        font-size: 0.7rem;
        gap: 0.5rem;
    }
    .guide-input-group label{
        font-size: .7rem;
    }
    .btn{
        font-size: .7rem;
    }
    h4{
        font-size: .7rem;
    }
}