﻿body {
    font-family: 'Segoe UI', sans-serif;
    background: #e1ecf7;
}

.sidebar {
    width: 240px;
    height: 100vh;
    background-color: #1e293b;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
}

.sidebar-header {
    padding: 0 24px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #38bdf8;
}

.sidebar-nav .nav-link {
    color: #cbd5e1;
    padding: 12px 24px;
    display: block;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-left: 4px solid transparent;
}

    .sidebar-nav .nav-link:hover,
    .sidebar-nav .nav-link.active {
        background-color: #0f172a;
        color: #38bdf8;
        border-left: 4px solid #38bdf8;
        border-radius: 0;
    }

    .sidebar-nav .nav-link.text-danger {
        color: #ef4444;
    }

        .sidebar-nav .nav-link.text-danger:hover {
            background-color: #7f1d1d;
            color: #fff;
            border-left-color: transparent;
        }

.main-content {
    background-color: #e1ecf7;
    margin-left: 240px;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    padding-top: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.main-content {
    background-color: #e1ecf7;
    margin-left: 240px;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dataTables_filter input {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #f8fafc;
    width: 250px;
}

nav[aria-label="pagination"] {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.dt-paging-button {
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    color: #212529;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .dt-paging-button:not(.disabled):hover {
        background-color: #e2e6ea;
        color: #0d6efd;
        border-color: #adb5bd;
    }

    .dt-paging-button.current {
        background-color: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }

    .dt-paging-button.disabled {
        background-color: #e9ecef;
        color: #adb5bd;
        cursor: not-allowed;
        border-color: #dee2e6;
    }

/*Custom Toggle button - start e.g. org popup*/

.custom-toggle-container {
    display: inline-block;
    position: relative;
    user-select: none;
    font-family: sans-serif;
}

.toggle-switch {
    display: flex;
    position: relative;
    width: 200px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.toggle-option {
    flex: 1;
    text-align: center;
    line-height: 35px;
    z-index: 2;
    transition: color 0.3s ease;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.4);
}

.toggle-slider {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: white;
    border-radius: 10px;
    transition: left 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#ActiveToggle:checked + .toggle-switch .toggle-slider {
    left: 50%;
}

#ActiveToggle:checked + .toggle-switch .inactive-label {
    color: white;
    background-color: red;
}

#ActiveToggle:checked + .toggle-switch .active-label {
    color: rgba(0, 0, 0, 0.4);
}

#ActiveToggle:not(:checked) + .toggle-switch .active-label {
    color: white;
    background-color: green;
}

#ActiveToggle:not(:checked) + .toggle-switch .inactive-label {
    color: rgba(0, 0, 0, 0.4);
}

.dt-empty {
    text-align: center;
}

.text-center {
    text-align: center;
}

/*Custom toggle button - end*/
