/* /assets/css/public.css */
:root {
    --orange: #ff6200;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.d-flex {
    display: flex;
    min-height: 100vh;
}

/* Стили для бокового меню */
.sidebar {
    width: 250px;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.sidebar-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-header .logo .favicon {
    width: 24px;
    height: 24px;
}

.sidebar-close, .sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #333;
    cursor: pointer;
    display: none;
}

.sidebar .nav {
    flex-direction: column;
}

.sidebar .nav-item {
    margin-bottom: 0.5rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sidebar .nav-link:hover {
    background: #fff5e6;
    color: var(--orange);
}

.sidebar .nav-link.active {
    background: var(--orange);
    color: #fff;
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
}

.text-orange {
    color: var(--orange) !important;
}

.main-content {
    flex: 1;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.main-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-row {
    background: linear-gradient(135deg, #ffffff 0%, #fff5e6 100%);
    padding: 2rem;
    border-radius: 12px;
}

.auth-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-card .nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.auth-card .nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.auth-card .nav-link:hover {
    color: var(--orange);
    border-bottom: 2px solid var(--orange);
}

.auth-card .nav-link.active {
    color: var(--orange);
    border-bottom: 2px solid var(--orange);
    background: none;
}

.btn-primary {
    background-color: var(--orange);
    border-color: var(--orange);
}

.btn-primary:hover {
    background-color: #e55a00;
    border-color: #e55a00;
}

.btn-primary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.btn-outline-primary {
    color: var(--orange);
    border-color: var(--orange);
}

.btn-outline-primary:hover {
    background-color: var(--orange);
    color: #fff;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.footer {
    padding: 1.5rem 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.footer-links a {
    font-size: 0.9rem;
    color: #333;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--orange) !important;
}

.footer .text-muted {
    font-size: 0.85rem;
    color: #666;
}

/* Мобильная адаптация */
@media (max-width: 767.98px) {
    .d-flex {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        z-index: 1000;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close, .sidebar-toggle {
        display: block;
    }

    .sidebar-toggle {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
    }

    .sidebar .nav {
        flex-direction: column;
        padding-bottom: 1rem;
    }

    .sidebar .nav-item {
        margin-bottom: 0.5rem;
    }

    .sidebar .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .main-content {
        padding: 0.5rem;
    }

    .main-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .auth-row {
        padding: 1rem;
    }

    .auth-card .nav-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        border-bottom: none;
    }

    .auth-card .nav-item {
        flex: 0 0 auto;
    }

    .auth-card .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-right: 0.5rem;
        background: #f8f8f8;
    }

    .auth-card .nav-link.active {
        background: var(--orange);
        color: white;
        border-bottom: none;
    }

    .auth-card .nav-link:hover {
        border-bottom: none;
        background: #eee;
    }

    .footer .text-muted {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .auth-row {
        padding: 0.5rem;
    }
}