/*
    PURE NEXT
    Company Management System - Stylesheet
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #EE0D0D;
    --primary-color-dark: #ae0b0b;
    --secondary-color:#8C143E;
    --gradient: linear-gradient(to right, #EE0D0D, #8C143E);
    --primary-bg: #0c1015;
    --primary-font: 'Montserrat', sans-serif;
    --scrollbarBG: #12181f;
    --thumbBG: #8C143E;
}


html {
    cursor: url('../img/cursor.png'), default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    scroll-padding-top: 150px; 
}
body {
    margin: 0;
    height: 100vh;
    font-family: var(--primary-font);
    background: url("../img/background-nologo.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #f8f9fa;
}
* {
    scrollbar-width: inherit;
    scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
*::-webkit-scrollbar {
    width: 14px;
}
*::-webkit-scrollbar-track {
    background: var(--scrollbarBG);
}
*::-webkit-scrollbar-thumb {
    background-color: var(--thumbBG);
    border-radius: 10px;
    border: 3px solid #000;
}
::selection {
    background: var(--primary-color);
    color: #fff;
}
::-moz-selection {
    background: var(--primary-color);
    color: #fff;
}
a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}
a:hover {
    text-decoration: none;
    color: var(--primary-color-dark);
}

.main-content {
    margin-left: 260px;
    padding: 32px 24px 24px 24px;
    min-height: 100vh;
    background: #f9fafb;
    transition: margin-left 0.2s;
}
@media (max-width: 700px) {
    .main-content { margin-left: 0; }
}

.status-badge {
    min-width: 60px;
}
.status-badge2 {
    min-width: 77px;
}
.status-btn {
    min-width: 107px;
}

/************************************************
    LOGIN
************************************************/
.login.logo {
    margin-bottom: 20px;
    filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.5));
}
footer.login {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: 0 !important;
    background-color: transparent !important;
    color: #fff !important;
    border-top: none !important;
}

/************************************************
    SIDEBAR
************************************************/

.pn-sidebar {
    min-width: 260px;
    height: 100vh;
    background: #181d2b;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    left: 0; 
    top: 0;
    box-shadow: 5px 0 20px -1px rgba(0,0,0,0.2);
    text-align: center;
}

.pn-sidebar img {
    max-width: 210px;
    padding: 20px 0 0 0;
}
.sidebar-nav .nav-link.sidebar-link,
.logout-btn {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #e3e3e3;
    padding: 12px 24px 12px 20px;
    font-size: 1.09rem;
    transition: background 0.18s, color 0.13s;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}
.sidebar-nav .nav-link.sidebar-link:hover,
.sidebar-nav .nav-link.sidebar-link.active {
    background: #343a40;
    color: #fff;
}
.sidebar-nav .nav-link.sidebar-link.active {
    background: #6c757d;
    color: #fff;
}
.sidebar-nav i {
    max-width: 12px;
}
.sidebar-bottom {
    margin-bottom: 4px;
    padding-bottom: 16px;
}
.logout-btn {
    color: #e44545 !important;
    transition: background 0.15s, color 0.13s;
}
.logout-btn:hover {
    background: #a91e1e;
    color: #fff !important;
}


/************************************************
    MITARBEITER PAGE
************************************************/
span.mitarbeiter {
    min-width: 86px !important;
}


/************************************************
    PRODUKTE PAGE
************************************************/
.products .card {
    background: linear-gradient(white, white) padding-box, linear-gradient(to right, var(--primary-color), var(--secondary-color)) border-box !important;
    border-radius: 10px !important;
    border: 3px solid transparent !important;
}
.products .card .btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)) border-box !important;
    border: none !important;
}
.products .card .btn:hover {
    background: linear-gradient(to right, var(--primary-color-dark), var(--secondary-color)) border-box !important;
    border: none !important;
}

/************************************************
    ERROR PAGE
************************************************/
.errorpage {
    background-color: #f8f9fa;
    text-align: center;
    padding: 50px;
    height: 100%;
}
.errorpage .logo {
    max-width: 250px;
    margin-bottom: 30px;
}
.errorpage .error-box {
    background: white;
    border-radius: 1rem;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: inline-block;
}
footer.error {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: 0 !important;
    background-color: transparent !important;
    color: #fff !important;
    border-top: none !important;
}


/************************************************
    FOOTER
************************************************/
footer {
    margin-top: auto;
    margin-left: 260px;
    padding: 10px 0 0 0;
    max-height: 60px;
    background-color: #f8f9fa;
    color: #333;
    text-align: center;
    border-top: 1px solid #ddd;
    font-size: 12px;
    text-transform: uppercase;
}
footer p {
    letter-spacing: 4px;
    font-size: 8px;
}