#home {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 10px;
}

#home .page-title {
    margin-bottom: 20px;
    text-align: center;
}

.role-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 18px 20px;
    cursor: pointer;
    border-radius: 14px;
    border: 1.5px solid #E5DFEC;
    background: #ffffff;
    margin-bottom: 14px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(74, 50, 103, 0.04);
}

.role-card:hover {
    border-color: #DE638A;
    background: #fffcfd;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(222, 99, 138, 0.14);
}

.role-info {
    text-align: center;
    width: 100%;
}

.role-info h3 {
    color: #4A3267;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.role-info p {
    color: #6E5A87;
    font-size: 12.5px;
    line-height: 1.4;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: 0 6px 20px rgba(74, 50, 103, 0.05);
    max-width: 440px;
    margin: 24px auto;
    border: 1px solid #E5DFEC;
}

.login-card h2 {
    text-align: center;
    color: #4A3267;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.4px;
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-section {
    margin-bottom: 20px;
}

.dashboard-section h3 {
    color: #4A3267;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(74, 50, 103, 0.03);
    border: 1px solid #E5DFEC;
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    background: #F4EFF6;
    padding: 6px;
    border-radius: 12px;
    width: 100%;
    border: 1px solid #E2DBE8;
}

.tab-btn {
    flex: 1 1 auto;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid #DDD6E5;
    border-radius: 8px;
    color: #4A3267;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    text-align: center;
}

.tab-btn:hover {
    color: #DE638A;
    border-color: #DE638A;
}

.tab-btn.active {
    background: linear-gradient(135deg, #DE638A 0%, #4A3267 100%);
    color: #ffffff;
    border-color: #DE638A;
    box-shadow: 0 2px 8px rgba(222, 99, 138, 0.25);
    font-weight: 700;
}

.tab-content {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #E5DFEC;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(74, 50, 103, 0.03);
}

.stat-card h4 {
    color: #6E5A87;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.stat-card .value {
    font-size: 24px;
    font-weight: 800;
    color: #DE638A;
    letter-spacing: -0.4px;
}

.stat-card p {
    color: #9E8CAA;
    font-size: 11.5px;
    margin-top: 2px;
}

.availability-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #E5DFEC;
    border-radius: 9px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #EDE7F2;
    transition: 0.2s ease;
    border-radius: 24px;
    border: 1px solid #DDD6E5;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s ease;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #DE638A;
    border-color: #DE638A;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.availability-status {
    font-weight: 700;
    font-size: 13px;
    color: #10b981;
}

.availability-status.offline {
    color: #ef4444;
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .login-card {
        padding: 20px 16px;
        margin: 12px auto;
    }
}
