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

:root {
    --cms-primary: #0d6efd;
    --cms-primary-dark: #0b5ed7;
    --cms-sidebar-width: 250px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: .875rem;
}

.app-wrapper {
    min-height: 100vh;
}

.app-sidebar .sidebar-brand {
    padding: .8125rem 1rem;
}

.sidebar-menu .nav-link {
    border-radius: .5rem;
    margin: 2px 8px;
    padding: .6rem 1rem;
    transition: all .2s ease;
}

.sidebar-menu .nav-link:hover {
    background: rgba(255,255,255,.1);
}

.sidebar-menu .nav-link.active {
    background: var(--cms-primary) !important;
    box-shadow: 0 2px 8px rgba(13,110,253,.3);
}

.sidebar-menu .nav-icon {
    font-size: 1.1rem;
    margin-right: .5rem;
}

.small-box {
    border-radius: .75rem;
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.small-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.small-box .inner {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.small-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    white-space: nowrap;
}

.small-box p {
    font-size: .9rem;
    margin: 0;
    opacity: .9;
}

.small-box-icon {
    position: absolute;
    top: .5rem;
    right: .75rem;
    width: 4rem;
    height: 4rem;
    opacity: .25;
    z-index: 0;
}

.small-box-footer {
    display: block;
    padding: .5rem 1.5rem;
    background: rgba(0,0,0,.1);
    font-size: .8rem;
    text-decoration: none;
    transition: background .2s ease;
}

.small-box-footer:hover {
    background: rgba(0,0,0,.2);
}

.card {
    border-radius: .75rem;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    transition: box-shadow .2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0,0,0,.08);
}

.app-content-header {
    padding: 1.5rem 0 .5rem;
}

.app-content-header h3 {
    font-weight: 600;
    font-size: 1.4rem;
}

.breadcrumb {
    font-size: .85rem;
}

.table {
    font-size: .875rem;
}

.table thead th {
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c757d;
    border-bottom-width: 1px;
}

.btn {
    border-radius: .5rem;
    font-weight: 500;
    font-size: .875rem;
    padding: .4rem 1rem;
    transition: all .2s ease;
}

.btn-sm {
    border-radius: .375rem;
    padding: .25rem .75rem;
    font-size: .8rem;
}

.btn-primary {
    --bs-btn-bg: var(--cms-primary);
    --bs-btn-border-color: var(--cms-primary);
    --bs-btn-hover-bg: var(--cms-primary-dark);
}

.badge {
    font-weight: 500;
    padding: .35em .65em;
    border-radius: .375rem;
}

.text-bg-orange {
    color: #fff;
    background-color: #fd7e14;
}

.bg-orange {
    background-color: #fd7e14;
}

.form-control, .form-select {
    border-radius: .5rem;
    border-color: #dee2e6;
    font-size: .875rem;
    padding: .45rem .75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--cms-primary);
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

.form-label {
    font-weight: 500;
    font-size: .85rem;
    margin-bottom: .35rem;
}

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

.app-footer {
    padding: 1rem;
    font-size: .85rem;
}

.comment-item, .evolution-item {
    border-radius: .5rem;
    transition: background .2s ease;
}

.comment-item:hover, .evolution-item:hover {
    background: rgba(0,0,0,.02);
}

.user-header {
    padding: 1.25rem;
    text-align: center;
}

.user-header p {
    margin: .5rem 0 0;
    font-size: .9rem;
}

.user-footer {
    padding: .75rem 1.25rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn .3s ease;
}

@media (max-width: 767.98px) {
    .sidebar-mini .main-sidebar {
        width: 100%;
    }
}

#descriptionEditor .ql-editor {
    min-height: 250px;
    font-size: .875rem;
}

#descriptionEditor .ql-toolbar {
    border-radius: calc(.75rem - 1px) calc(.75rem - 1px) 0 0;
    border-color: #dee2e6;
}

#descriptionEditor .ql-container {
    border-radius: 0 0 calc(.75rem - 1px) calc(.75rem - 1px);
    border-color: #dee2e6;
}

#descriptionEditor.focus-within {
    border-color: var(--cms-primary);
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}
