@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-success: #16a34a;
    --bs-danger: #ef4444;
    --app-text: #1f2937;
    --app-muted: #6b7280;
    --app-border: #e2e8f0;
    --app-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

body {
    font-family: "Inter", sans-serif;
    color: var(--app-text);
    background-color: #f6f7fb;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.app-header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.05));
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    backdrop-filter: blur(6px);
}

.navbar-main {
    background-color: transparent;
}

.navbar-main .navbar-brand {
    padding: 0;
}

.navbar-main .brand-chip {
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.navbar-main .brand-chip:hover,
.navbar-main .brand-chip:focus {
    transform: translateY(-1px);
    box-shadow: 0 24px 45px rgba(37, 99, 235, 0.14);
}

.navbar-main .navbar-toggler {
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.navbar-main .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(37, 99, 235, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-logo {
    max-height: 52px;
    width: auto;
    display: block;
    border-radius: 12px;
    box-shadow: none;
    mix-blend-mode: normal;
    background: transparent;
    padding: 0;
}

.brand-title {
    font-weight: 700;
    font-size: clamp(1.05rem, 1.8vw, 1.45rem);
    color: var(--app-text);
}

.navbar-main .nav-link {
    font-weight: 600;
    border-radius: 999px;
    color: var(--app-muted);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.navbar-main .nav-link:hover {
    color: var(--bs-primary);
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.navbar-main .nav-link.active {
    color: #ffffff;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.95));
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

@media (max-width: 767px) {
    .navbar-main .nav-link {
        width: 100%;
        text-align: center;
    }
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .user-meta {
        margin-top: 2rem;
    }
}

@media (min-width: 992px) {
    .user-meta {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        margin-top: 0;
    }
}

.user-name {
    font-weight: 600;
    color: var(--app-text);
}

.main-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    border: none;
    border-radius: 1.35rem;
    background-color: #ffffff;
    box-shadow: var(--app-shadow);
}

.card-header {
    border: none;
    background: transparent;
    padding: 2rem 2rem 0;
}

.card-body {
    padding: 2rem;
}

@media (min-width: 992px) {
    .card-header {
        padding: 2.25rem 2.75rem 0;
    }

    .card-body {
        padding: 2.75rem;
    }
}

.badge-counter {
    font-weight: 600;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    background-color: rgba(37, 99, 235, 0.12);
    color: var(--bs-primary);
}

.form-label {
    font-weight: 600;
    color: var(--app-muted);
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 0.85rem;
    border: 1px solid var(--app-border);
    background-color: #f9fbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

.btn-primary {
    background: linear-gradient(120deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(120deg, #1d4ed8, #1e40af);
    border-color: #1e40af;
}

.btn-outline-secondary {
    color: var(--app-muted);
    border-color: rgba(100, 116, 139, 0.35);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #334155;
    background-color: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.45);
}

.alert {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.alert ul li + li {
    margin-top: 0.35rem;
}

.table-responsive {
    border-bottom-left-radius: 1.35rem;
    border-bottom-right-radius: 1.35rem;
    overflow: hidden;
}

.table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--app-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.04);
}

.pagination-modern .page-link {
    border: none;
    border-radius: 999px !important;
    margin: 0 0.25rem;
    color: var(--app-muted);
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pagination-modern .page-link:hover {
    color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.18);
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(120deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.28);
}

.pagination-modern .page-item.disabled .page-link {
    background-color: rgba(241, 245, 249, 0.9);
    color: rgba(100, 116, 139, 0.6);
    box-shadow: none;
}

.empty-state {
    color: var(--app-muted);
    font-style: italic;
    padding: 2.5rem;
    text-align: center;
}

.app-footer {
    text-align: center;
    padding: 2rem 0 3rem;
    color: var(--app-muted);
    font-size: 0.95rem;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 55%), #f6f7fb;
}

.auth-container {
    width: min(420px, 90%);
    margin: 3rem auto;
}

.auth-card {
    border: none;
    border-radius: 1.5rem;
    padding: 2.75rem 2.5rem;
    box-shadow: var(--app-shadow);
    background-color: #ffffff;
    text-align: center;
}

.auth-logo {
    width: 120px;
    margin-bottom: 1.5rem;
}

.auth-subtitle {
    color: var(--app-muted);
    margin-bottom: 1.75rem;
}

.auth-form .form-label {
    width: 100%;
    text-align: left;
}

.auth-form .btn {
    width: 100%;
}

.auth-footer {
    margin-top: 1.75rem;
    color: var(--app-muted);
    font-size: 0.95rem;
}

.link-secondary {
    color: var(--bs-primary);
    font-weight: 600;
}

.link-secondary:hover {
    color: #1d4ed8;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
