/*
        MAIN ELEMENTS
 */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-fourth: #3a3a3a;
    --bg-grey: #a8a8a8;

    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;

    --color-main-green: #28a745;
    --color-main-blue: #007bff;

    --accent: var(--color-main-green);
    --accent-red: #f73f31;
    --accent-orange: #f7c631;
    --accent-green: #51cf66;
    --accent-blue: var(--color-main-blue);
    --success: #10b981;
    --danger: #ef4444;
    --border: #333333;
    --border-secundary: #4d4d4d;
    --border-white: #ffffff;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --border-radius: 5px;
    --content-border-radius: 10px;
    --transition: all 0.3s ease;

    --btn-bg-primary: var(--color-main-green);
    --btn-bg-blue: var(--color-main-blue);
    --btn-bg-secondary: var(--color-main-green);

    --is-mobile: 0;
}

.selected {
    background-color: var(--bg-fourth);
}

.mobile-only {
    display:none!important;
}

.loading {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
}
.loading > img {
    padding: 25%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-secondary); /* thumb track */
}

input, textarea {
    user-select: text;
}

button, [role="button"], .round-button, .icon-button, select {
    cursor: pointer;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    min-width: 380px;
}
.main-container {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}
.main-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}

header {
    color: var(--text-primary);
    padding: 1rem 0;
    flex-grow:0;
}
main {
    flex-grow: 1;
    flex-shrink: 1;
    min-height: 0; /* Required... fuxking css */
    padding: 1rem;
}
.flex-container {
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    justify-content: space-between;
}
.main-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: #28a745;
    padding-right: 2rem;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}
/*
        NAVIGATION
 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    border-bottom: 5px solid var(--accent);
    padding-bottom: 1rem;

}
.main-menu {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    flex-grow: 1;
}
.main-menu button {
    text-transform: uppercase;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: var(--transition);
}
.main-menu button.active {
    color: var(--accent);
}
.main-menu button:hover {
    color: var(--accent);
}
.user-menu {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.user-menu .btn {
    min-width: auto;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}
.user-menu svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--bg-fourth);
}

.user-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
}

/* TELEFOON (max 480px) */
@media (max-width: 768px) {
    /* Indicator for javascript that we're on small mode */
    :root {
        --is-mobile: 1
    }

    body, .main-container {
        width: 100%;
    }

    .main-menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .main-content-wrapper {
        width: 100%;
        flex-direction: column;
        display: flex;
        gap: 0.5rem;
    }
    .sidebar {
        width: 100%;
    }
    .main-panel {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s;
        z-index: 10;
    }
    .mobile-only {
        display: block!important;
    }
    .main-panel.mobile_focused {
        transform: translateX(0);
    }
}

/*
        END MAIN ELEMENTS
 */

.svg{
    display: none;
}


/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); z-index: 1000;
}
.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    width: auto;
    max-width: 1440px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
}
.modal-header {
    padding: 0.5rem 1rem 0.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.modal-body {
    padding: 1.5rem;
}
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}
.confirmation-view {
    display:flex;
    flex-direction: column;
    align-items: center;
}
.confirm-buttons{
    display: flex;
    padding: 1rem;
    gap: 2rem;
}

/* STARS */

.rating-star{
    color: #f5d20a;
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    transition: fill 0.15s ease, transform 0.15s ease;
    stroke: #f5d20a;
    stroke-width: 1;
}
.rating-star.filled{
    fill: #f5d20a;
}
.rating-star.editable {
    cursor: pointer;
}
.rating-star.hover {
    fill: rgba(245, 210, 10, 0.35);
}

@keyframes star-click {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.rating-star.clicked {
    animation: star-click 0.3s ease;
}

/* BUTTONS */
.btn {
    padding: 0.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    background: var(--accent);
    color: white;
    min-width: 7rem;
}
.btn.red-accent {
    background: var(--accent-red);
}

.btn:hover {
    background: var(--accent-blue);
}

/* ICON BUTTONS */

.button-container {
    display: flex;
    gap: 20px;
    align-items: center;
}
.round-button.small {
    width:1rem;
    height:1rem;
}
.round-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.round-button.search-box-close{
    background: none;
}
.round-button.search-box-close:hover{
    background: none;
}
.round-button:hover {
    background: #444;
    transform: scale(1.1);
}
.round-button svg {
    width: 24px;
    height: 24px;
    fill: #4a9eff;
}
.round-button:hover svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}
.round-button.accent-orange:hover svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-orange);
}
.round-button.accent-red:hover svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-red);
}
.button-group {
    display: flex;
    gap: 10px;
    background: #333;
    border-radius: 40px;
    padding: 5px;
}
.group-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.group-button:hover {
    background: #444;
    transform: scale(1.1);
}
.group-button svg {
    width: 20px;
    height: 20px;
    fill: #4a9eff;
}
.group-button:hover svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}
.group-button.accent-orange:hover svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-orange);
}
.group-button.accent-red:hover svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-red);
}
.group-button.accent-green:hover svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-green);
}
.group-button.accent-blue svg {
    width: 20px;
    height: 20px;
    fill: none;
    color: #4a9eff;
}
.group-button.accent-blue:hover svg {
    width: 20px;
    height: 20px;
    fill: none;
    color: var(--accent);
}
.group-button.favorite-active svg{
    fill: #f74f4f;
}

/* Messages */
.alert {
    position: fixed;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    background: #6B1E2F; /* deep classy red */
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    animation: fadein 0.3s ease;
}

.alert button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    padding: 0 6px;
    transition: background 0.5s;
}

.alert button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.hidden {
    display: none;
}

.custom-tooltip {
    position: fixed;
    background-color: #7774;
    color: white;
    padding: 0.2rem 0.4rem;
    border: 2px solid #444A;
    border-radius: var(--border-radius);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity 0.2s;
    z-index: 9999;
    white-space: nowrap;
}

.custom-tooltip.visible {
    opacity: 1;
}