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

:root {
    --bg-primary: #0a192f;
    --accent-color: #00b4d8;
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --glass-bg: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
}

.themed-link {
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    color: var(--accent-color);
}

.themed-link:hover {
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    color: var(--accent-color);
}

/* Glass Panel Effect */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    margin: 15px 0;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1001;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 24px;
    cursor: pointer;
}

.nav-content {
    overflow-y: auto;
    max-height: calc(100vh - 125px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-content::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    margin-left: 0;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-active {
    margin-left: 250px;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Buttons */
.btn {
    background: linear-gradient(45deg, var(--accent-color), #4cc9f0);
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Orbitron', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: white
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
}

.kogeneracja-table th,
.kogeneracja-table td {
    white-space: nowrap;
}

.kogeneracja-on {
    background-color: #fff !important;
    color: #222 !important;
}

.kogeneracja-off {
    background-color: #c5bdbde7 !important;
    color: #222 !important;
}

.row-highlighted {
    background-color: #80eb80 !important;
    color: #1d1c1c !important;
    transition: background-color 0.3s ease;
}

.kogeneracja-table tbody tr {
    cursor: pointer;
}

.kogeneracja-table tbody tr:hover:not(.row-highlighted) {
    background-color: rgba(35, 174, 35, 0.725) !important;
}

.kogeneracja-table tbody tr.row-highlighted {
    background-color: #80eb80 !important;
    color: #1b1919 !important;
}

.column-highlighted {
    background-color: #80eb80 !important;
    color: #1b1919 !important;
    transition: background-color 0.3s ease;
}

/* Energy Flow Diagram */
.energy-flow {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 20px 0;
}

.energy-component {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.energy-component:hover {
    transform: scale(1.1);
}

/* scrollable long tables */
.table-scrollable {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .main-content.sidebar-active {
        margin-left: 0;
    }

    .sidebar {
        width: 100%;
        left: -100%;
    }

    .main-content {
        padding: 20px 15px;
    }

    .glass-panel {
        margin: 10px;
        padding: 15px;
    }

    body {
        padding: 0 10px;
    }
}