.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay svg {
    border: 2px solid red;
    padding: 10px;
}

.hidden {
    display: none;
}

body {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group input {
    width: 90%;
}

label {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #f37934;
    margin-bottom: 5px;
}

.tooltip {
    margin-left: 5px;
    font-size: 14px;
    color: #f37934;
    cursor: pointer;
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 20px;
    bottom: 100%;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

input,
textarea,
select {
    width: 95%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #2b2b2b;
    color: #fff;
}

select {
    width: 99%;
}

button {
    background-color: #f37934;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #e66a2d;
}

.info-section {
    max-width: 600px;
    margin: 0 auto;
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
}

.info-section h2 {
    cursor: pointer;
    color: #f37934;
    font-size: 20px;
    margin: 0;
    padding: 10px;
    background-color: #1c1c1c;
    border: 1px solid #f37934;
    border-radius: 4px;
}

.info-content {
    display: none;
    background-color: #2b2b2b;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

.info-content.active {
    display: block;
}

.image {
    text-align: center;
    margin-bottom: 20px;
}

.image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.info-content a {
    color: red;
}

.blurred-background {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
    color: #fff;
    padding: 18px 12px;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.6);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar .brand {
    color: #fff;
    text-decoration: none;
}

.brand-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    font-weight: 700;
    font-size: 16px;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-nav {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar .nav-link {
    color: #cbd5e1;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.sidebar-bottom {
    margin-top: 18px;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.user-name {
    font-weight: 600;
    color: #0077ff;
}

.logout {
    color: #f87171;
    text-decoration: none;
}

.page-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    padding: 20px;
    transition: margin-left .2s ease;
}

.page-header {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
}

body.sidebar-collapsed .sidebar {
    width: 80px;
}

body.sidebar-collapsed .page-wrapper {
    margin-left: 80px;
}

body.nav-labels-hidden .nav-text {
    display: none !important;
}

.sidebar {
    transition: width .18s ease;
}

.sidebar .nav-text {
    transition: opacity .12s ease, transform .12s ease;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    transform: translateX(-6px);
}

body.nav-labels-hidden .brand-text,
.sidebar.collapsed .brand-text,
body.sidebar-collapsed .brand-text {
    display: none !important;
}

.sidebar.collapsed {
    width: 80px;
}

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

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.widget.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: none;
    color: #e6edf3;
}

.widget .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.muted {
    color: #9aa4b2;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.02);
    border: none;
    color: #e6edf3;
}

.chart-placeholder {
    min-height: 180px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa4b2;
}
