/* Твой любимый дизайн */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(145deg, #0b1a2e 0%, #1a2f3f 100%);
    font-family: 'Segoe UI', sans-serif;
}

.dashboard {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Верхняя панель */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(10, 20, 30, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    min-height: 70px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 1.2rem 0.3rem 0.8rem;
    border-radius: 40px;
    font-weight: 500;
}

.sso-login-btn {
    background: linear-gradient(145deg, #2b32b2, #1488cc);
    border: none;
    border-radius: 60px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.2s;
}

.sso-login-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 10px 25px rgba(43, 50, 178, 0.4);
}

.logout-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.3rem 1.5rem;
    border-radius: 40px;
    background: rgba(255,255,255,0.05);
    transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
}

.logout-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* Сетка 4x3 */
.grid-4x3 {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 15px;
}

.grid-row {
    display: flex;
    flex: 1;
    gap: 15px;
}

.grid-card {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 32px;
    padding: 20px 10px;
    color: white;
    text-decoration: none;
    box-shadow: 0 15px 30px -8px rgba(0,0,0,0.6);
    transition: 0.2s;
    cursor: pointer;
    min-height: 150px;
    border: 1px solid rgba(255,255,255,0.1);
}

.grid-card:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 20px 35px -5px black;
}

/* Индивидуальные градиенты */
.card-dsm { background: linear-gradient(145deg, #2b32b2, #1488cc); }
.card-calendar { background: linear-gradient(145deg, #ff6b6b, #ff8e53); }
.card-mail { background: linear-gradient(145deg, #2193b0, #6dd5ed); }
.card-chat { background: linear-gradient(145deg, #11998e, #38ef7d); }
.card-drive { background: linear-gradient(145deg, #834d9b, #d04ed6); }
.card-photos { background: linear-gradient(145deg, #f12711, #f5af19); }
.card-tasks { background: linear-gradient(145deg, #5f2c82, #49a09d); }
.card-audio { background: linear-gradient(145deg, #4568dc, #b06ab3); }
.card-downloads { background: linear-gradient(145deg, #e65c00, #f9d423); }
.card-settings { background: linear-gradient(145deg, #3a6186, #89253e); }
.card-video { background: linear-gradient(145deg, #4a00e0, #8e2de2); }
.card-contacts { background: linear-gradient(145deg, #00b09b, #96c93d); }

.grid-card i {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.card-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-align: center;
}

.card-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
}

/* Нижняя панель */
.status-bar {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    border-radius: 60px;
    color: rgba(255,255,255,0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .grid-row {
        flex-wrap: wrap;
    }
    .grid-card {
        flex: 1 1 40%;
        min-width: 40%;
    }
    .top-bar {
        flex-direction: column;
        gap: 10px;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .status-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}