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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f9; /* Light industrial gray */
    color: #333;
}

/* Sidebar Styling */
#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 280px;
    margin-left: -280px;
    transition: margin 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #1a1d20; /* Dark industrial slate */
    color: #fff;
    box-shadow: 2px 0 15px rgba(0,0,0,0.05);
    z-index: 1000;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.8rem 1.5rem;
    background-color: #15181a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#sidebar-wrapper .sidebar-heading .brand-title {
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: #ffffff;
}

#sidebar-wrapper .sidebar-heading .brand-subtitle {
    font-size: 0.75rem;
    color: #8b929a;
    font-weight: 500;
    margin-top: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#sidebar-wrapper .list-group {
    width: 280px;
    padding-top: 1rem;
}

#sidebar-wrapper .list-group-item {
    background: transparent;
    color: #a9b1bb;
    border: none;
    padding: 1rem 1.8rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

#sidebar-wrapper .list-group-item:hover, 
#sidebar-wrapper .list-group-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border-left: 4px solid #0d6efd;
}

#page-content-wrapper {
    min-width: 100vw;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

/* Navbar */
.navbar {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
    padding: 1rem 1.5rem;
}

/* Cards & UI Elements */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f0f2f5;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

/* Table Styling */
.table-responsive {
    border-radius: 12px;
}

.table th {
    font-weight: 600;
    color: #5e6e82;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom-width: 1px;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
}

.table td {
    vertical-align: middle;
    color: #333;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f2f5;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    box-shadow: none;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.btn {
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
}

/* Stats Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.stat-card .icon-bg {
    position: absolute;
    right: -5%;
    bottom: -15%;
    font-size: 7rem;
    opacity: 0.15;
    transform: rotate(-10deg);
    transition: transform 0.3s ease;
}

.stat-card:hover .icon-bg {
    transform: rotate(0deg) scale(1.1);
}

@media (min-width: 992px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: -280px;
    }
}

/* Whiteboard Specific Styles */
.whiteboard-table {
    border-collapse: separate;
    border-spacing: 0;
}
.whiteboard-table th {
    background-color: #1a1d20;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.8rem;
    text-align: center;
    border: 1px solid #343a40;
}
.whiteboard-table td {
    padding: 0;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}
.whiteboard-input {
    width: 100%;
    height: 100%;
    min-height: 45px;
    border: none;
    text-align: center;
    background: transparent;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0;
    transition: background-color 0.2s ease;
}
.whiteboard-input:focus {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
    background-color: #fff;
}
/* Hide arrows in number inputs */
.whiteboard-input::-webkit-outer-spin-button,
.whiteboard-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.whiteboard-input[type=number] {
  -moz-appearance: textfield;
}

/* Color Coding */
.status-green .whiteboard-input { background-color: #d1e7dd !important; color: #0f5132; }
.status-yellow .whiteboard-input { background-color: #fff3cd !important; color: #664d03; }
.status-red .whiteboard-input { background-color: #f8d7da !important; color: #842029; }
