@import url('login.css');
@import url('sidebar.css');
@import url('header.css');
@import url('pages/dashboard.css');
@import url('pages/user.css');
@import url('alert.css');
@import url('boxes.css');
@import url('inputs.css');

:root {
    --primary-color: #6b6b6b;
    --secondary-color: #030303;

    --text-color: #414141;
    --text-color-light: #fafafa;
    --text-muted: #6c757d;

    --icon-color: #a0a0a0;
    --border-color: #FFFFFF99;

    --nav-bg: var(--primary-color);
    --nav-border: #ffffffe5;
    --nav-shadow: rgba(0, 0, 0, 0.3);
    --logo-color: #FFFFFF;
    --user-icon-color: var(--text-color-light);

    --bg-gradient-1: #D8E2FF;
    --bg-gradient-2: #A7B7E7;

    --card-bg: #ffffff44;
    --card-border: #FFFFFF99;
    --card-shadow: #8a8a8a59;

    --input-bg: #ffffff59;
    --input-shadow: #b3b3b359;

    --alert-bg: #fee2e2;
    --alert-text: #dc2626;
    --alert-border: #fca5a5;

    --btn-color: #FFFFFF;
    --btn-primary: var(--primary-color);
    --btn-secondary: var(--secondary-color);
    --button-hover-color: #f1f1f1;
    --button-border: #ffffff4d;
    --button-border-hover: #fff9;

    --shine-1: rgba(255, 255, 255, 0);
    --shine-2: rgba(255, 255, 255, 0.8);
    --shine-3: rgba(255, 255, 255, 0);

    --footer-text: var(--text-color);
}

[data-theme="dark"] {
    --primary-color: #7b85ff;
    --secondary-color: #0b0e38;

    --text-color: #fafafa;
    --text-color-light: #9ca3af;

    --icon-color: #9ca3af;
    --border-color: #ffffff1a;

    --nav-bg: #0b0e38;
    --nav-border: #ffffff33;
    --nav-shadow: rgba(0, 0, 0, 0.7);
    --logo-color: #FFFFFF;
    --user-icon-color: var(--text-color);

    --bg-gradient-1: #121829;
    --bg-gradient-2: #1B243B;

    --card-bg: #ffffff0d;
    --card-border: #ffffff26;
    --card-shadow: #00000088;

    --input-bg: #ffffff14;
    --input-shadow: #00000059;

    --alert-bg: #7f1d1d;
    --alert-text: #fca5a5;
    --alert-border: #991b1b;

    --btn-primary: var(--secondary-color);
    --btn-secondary: var(--primary-color);
    --button-border: #ffffff26;
    --button-border-hover: #ffffff66;

    --shine-1: rgba(255, 255, 255, 0);
    --shine-2: rgba(255, 255, 255, 0.25);
    --shine-3: rgba(255, 255, 255, 0);

    --footer-text: var(--text-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
}

button,
a {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: 90px 1fr;
    height: 100vh;
    transition: all 0.35s;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: linear-gradient(45deg, var(--bg-gradient-2), var(--bg-gradient-1));
    z-index: -1;
    transition: all 0.6s ease;
}

/* Content */
.content {
    grid-column: 2;
    padding: 20px;
    overflow-y: auto;
}

/* --- Sidebar default --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(134, 134, 134, 0.651);
    border-radius: 10px;
    transition: all 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 20, 20, 0.4);
}

::-webkit-scrollbar-button {
    display: block;
    width: 0;
    height: 0;
    max-height: 0;
    max-width: 0;
    pointer-events: none;
}

/* --- Framework --- */
.row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-1 {
    width: 8.33%
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.3%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12,
.col-full {
    width: 100%;
}


/* --- Konec framework --- */

.icon-bg {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 20px;
    corner-shape: squircle;
    color: var(--text-color-light);
}

.icon-bg.primary {
    background-color: var(--primary-color);
}

.icon-bg.secondary {
    background-color: var(--secondary-color);
}

@media screen and (max-width: 1600px) {
    .layout {
        grid-template-columns: 80px 1fr;
        height: 100vh;
        transition: all 0.35s;
    }

    .layout:has(.sidebar:hover) {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 1024px) {
    .layout {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100dvh;
        overflow: hidden;
    }

    .content {
        position: relative;
        width: 100%;
        flex: 1;
        padding-top: 90px;
        overflow-y: auto;
    }
}