:root {
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #eef2ff;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f1f5f9;
}
.logo {
    width: 40px;
}
/* Navbar */
.navbar-custom {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 3px solid var(--accent);
}
.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff !important;
    letter-spacing: -0.5px;
}
.navbar-custom .navbar-brand i {
    color: var(--accent);
}
.navbar-custom .nav-link {
    color: rgba(255,255,255,.75) !important;
    font-weight: 500;
    transition: color .2s;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fff !important;
}
.navbar-custom .btn-outline-light:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.user-badge {
    background: rgba(255,255,255,.1);
    border-radius: 50rem;
    padding: .35rem .9rem;
    color: #fff;
    font-size: .875rem;
}
.user-badge i {
    color: var(--accent);
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
    transition: box-shadow .2s, transform .2s;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

/* Buttons */
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}
.btn-outline-accent {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-outline-accent:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Auth pages */
.auth-wrapper {
    min-height: calc(100vh - 72px - 60px);
    display: flex;
    align-items: center;
}
.auth-card {
    border-radius: 1.25rem;
    overflow: hidden;
}
.auth-card .auth-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    color: #fff;
}
.auth-card .auth-header h1 {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}
.auth-card .auth-header p {
    color: rgba(255,255,255,.6);
    margin: .5rem 0 0;
    font-size: .9rem;
}
.auth-card .auth-body {
    padding: 2rem;
}
.auth-card .form-control {
    border-radius: .75rem;
    padding: .65rem 1rem .65rem 2.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
    background: #fff;
}
.input-icon-wrapper {
    position: relative;
}
.input-icon-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    z-index: 4;
}

/* Footer */
.footer-custom {
    background: #1e293b;
    color: rgba(255,255,255,.5);
    font-size: .85rem;
}

/* Alerts */
.alert {
    border-radius: .75rem;
    border: none;
}

/* Dashboard stat card */
.stat-card {
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform .2s;
}
.stat-card:hover {
    transform: translateY(-3px);
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: .75rem;
}

/* Organization sub-nav pills */
.nav-pills .nav-link {
    color: #64748b;
    font-weight: 500;
    border-radius: .75rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    transition: all .2s;
}
.nav-pills .nav-link:hover {
    color: var(--accent);
    background: var(--accent-light);
}
.nav-pills .nav-link.active {
    background: var(--accent);
    color: #fff;
}

/* Tables inside cards */
.card .table {
    margin-bottom: 0;
}
.card .table thead th {
    border-bottom-width: 1px;
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
}
.card .table tbody tr:last-child td {
    border-bottom: 0;
}

/* Form styling */
.form-control.rounded-3,
.form-select.rounded-3 {
    border-radius: .75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: .65rem 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control.rounded-3:focus,
.form-select.rounded-3:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
    background: #fff;
}

/* Кнопка быстрого доступа к операциям */
.bonus-quick-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bonus-quick-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.bonus-quick-btn i {
    font-size: 1.5rem;
}
