﻿/* Modern Dashboard Styles */

/* Global modern layout styles */
body.modern-layout {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0b14;
    background-image: radial-gradient(circle at 25% 25%, #1e293b 0%, transparent 50%), radial-gradient(circle at 75% 75%, #312e81 0%, transparent 50%);
    min-height: 100vh;
    padding: 20px;
    color: #f1f5f9;
}

/* Modern container for all pages */
.modern-container {
    max-width: none;
    padding: 0;
}

.modern-main {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

/* Dashboard header (now shared across all pages) */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.dashboard-logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

    .dashboard-logo:hover {
        text-decoration: none;
        opacity: 0.8;
    }

.dashboard-user-info {
    color: #94a3b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 20px;
}

    .dashboard-user-info .welcome {
        color: #f1f5f9;
        font-weight: 600;
    }

.dashboard-logout-form {
    margin: 0;
    display: inline;
}

    .dashboard-logout-form button {
        background: none;
        border: 1px solid rgba(148, 163, 184, 0.2);
        color: #94a3b8;
        padding: 8px 16px;
        border-radius: 12px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        font-family: inherit;
    }

        .dashboard-logout-form button:hover {
            background: rgba(30, 41, 59, 0.5);
            border-color: #60a5fa;
            color: #f1f5f9;
        }

/* Auth links for non-authenticated users */
.auth-links {
    display: flex;
    gap: 12px;
}

.auth-link {
    color: #94a3b8;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .auth-link:hover {
        background: rgba(30, 41, 59, 0.5);
        border-color: #60a5fa;
        color: #f1f5f9;
        text-decoration: none;
    }

/* Modern footer */
.modern-footer {
    margin-top: auto;
    padding-top: 15px;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.modern-footer-content {
    font-size: 14px;
}

.modern-footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .modern-footer a:hover {
        color: #a855f7;
        text-decoration: none;
    }

/* Dashboard-specific styles (for Admin Dashboard page) */
body.dashboard-page .modern-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
}

.dashboard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    width: 100%;
}

.dashboard-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    min-width: 240px; /* добавено за по-широки карти */
    max-width: 320px;
}

    .dashboard-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .dashboard-card:hover::before {
        left: 100%;
    }

    .dashboard-card:hover {
        transform: translateY(-8px);
        border-color: rgba(96, 165, 250, 0.3);
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(96, 165, 250, 0.2);
        text-decoration: none;
        color: inherit;
    }

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    position: relative;
    z-index: 1;
}

    .card-icon.create {
        background: linear-gradient(135deg, #a855f7, #c084fc);
        color: white;
    }

    .card-icon.view {
        background: linear-gradient(135deg, #94a3b8, #64748b);
        color: white;
    }

    .card-icon.edit {
        background: linear-gradient(135deg, #fb923c, #f59e0b);
        color: white;
    }

    .card-icon.check {
        background: linear-gradient(135deg, #60a5fa, #3b82f6);
        color: white;
    }

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.card-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Content styling for other pages */
.modern-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Override Bootstrap card styling for modern theme */
body.modern-layout .card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
}

body.modern-layout .card-header {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(168, 85, 247, 0.1));
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #f1f5f9;
}

body.modern-layout .card-body {
    color: #f1f5f9;
}

body.modern-layout h1,
body.modern-layout h2,
body.modern-layout h3,
body.modern-layout h4,
body.modern-layout h5,
body.modern-layout h6 {
    color: #f1f5f9;
}

/* Responsive design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }

    .dashboard-card {
        min-height: 160px;
        padding: 32px 24px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .dashboard-user-info {
        flex-direction: column;
        gap: 8px;
    }

    body.modern-layout {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        max-width: 100%;
    }

    .card-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .card-title {
        font-size: 18px;
    }
}

/* SVG icons styling */
.dashboard-card svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}
