/**
 * Neumorphism Design System - Sky Blue Theme
 * Modern, Soft UI, and Professional Sidebar Layout
 */

:root {
    --bg-color: #e8f4fd;
    --primary-color: #0284c7;
    --primary-light: #38bdf8;
    --primary-dark: #0369a1;
    
    --shadow-light: #ffffff;
    --shadow-dark: #c1d3e2;
    
    --text-main: #334155;
    --text-muted: #64748b;
    --text-contrast: #ffffff;

    --radius: 20px;
    --spacing: 20px;
    
    --sidebar-width: 280px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Neumorphism Base Classes */
.nm-flat {
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: 6px 6px 12px var(--shadow-dark),
                -6px -6px 12px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nm-inset {
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
                inset -4px -4px 8px var(--shadow-light);
    border: none;
}

.nm-btn {
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 4px 4px 8px var(--shadow-dark),
                -4px -4px 8px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nm-btn:hover {
    box-shadow: 2px 2px 4px var(--shadow-dark),
                -2px -2px 4px var(--shadow-light);
    transform: translateY(1px);
    color: var(--primary-dark);
}

.nm-btn:active, .nm-btn.active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
                inset -3px -3px 6px var(--shadow-light);
    transform: translateY(2px);
}

.nm-btn-primary {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 4px 4px 8px #b1c6d8,
                -4px -4px 8px #ffffff;
}

.nm-btn-primary:hover {
    background: var(--primary-dark);
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: var(--spacing);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: 6px 6px 12px var(--shadow-dark),
                -6px -6px 12px var(--shadow-light);
    padding: 30px 15px;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 20px 0;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
}

.sidebar-brand i {
    font-size: 2.8rem;
    color: var(--primary-color);
    filter: drop-shadow(4px 4px 8px var(--shadow-dark));
    transition: all 0.4s ease;
}

.sidebar-brand:hover i {
    transform: scale(1.1) rotate(-5deg);
    color: var(--primary-light);
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sidebar-brand-text .main {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.sidebar-brand-text .sub {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: -5px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-nav-item {
    margin-bottom: 15px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 15px;
    margin-bottom: 8px;
}

.sidebar-link i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-link span {
    white-space: nowrap;
    opacity: 0.95;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    box-shadow: 4px 4px 10px var(--shadow-dark),
                -4px -4px 10px var(--shadow-light);
    color: var(--primary-color);
    transform: translateX(8px);
}

.sidebar-link.active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark),
                inset -4px -4px 8px var(--shadow-light);
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(2, 132, 199, 0.03);
}

.sidebar-link.active i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
}

/* Main Content area */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Page Headers */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.page-subtitle {
    color: var(--text-muted);
}

/* Mobile Toggle */
.sidebar-toggler {
    display: none;
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1100;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .sidebar {
        left: -100%;
        padding: 10px;
    }
    .sidebar.show {
        left: 0;
    }
    .main-content {
        margin-left: 0;
        padding: 100px 20px 30px;
    }
    .sidebar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Tables Neumorphism */
.table-nm {
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent !important;
}

.table-nm tr {
    box-shadow: 4px 4px 8px var(--shadow-dark),
                -4px -4px 8px var(--shadow-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.table-nm td {
    background: var(--bg-color);
    border: none;
    padding: 15px;
}

.table-nm td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.table-nm td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

/* Stat Cards */
.stat-card-nm {
    padding: 25px;
    text-align: center;
}

.stat-card-nm .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Form Styling */
.form-control-nm {
    background: var(--bg-color);
    border: none;
    border-radius: 12px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
                inset -3px -3px 6px var(--shadow-light);
    padding: 12px 18px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-control-nm:focus {
    box-shadow: inset 5px 5px 10px var(--shadow-dark),
                inset -5px -5px 10px var(--shadow-light);
    outline: none;
    background: var(--bg-color);
}

.form-select-nm {
    background: var(--bg-color);
    border: none;
    border-radius: 12px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark),
                inset -3px -3px 6px var(--shadow-light);
    padding: 12px 18px;
    color: var(--text-main);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    cursor: pointer;
}

.form-select-nm:focus {
    box-shadow: inset 5px 5px 10px var(--shadow-dark),
                inset -5px -5px 10px var(--shadow-light);
    outline: none;
    background: var(--bg-color);
}

