/* ===========================
   Base & Body Styles
=========================== */
body {
    font-family: 'Segoe UI', Tahoma, 'Geneva', Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 100vh;
    background: #dde1e7;
    margin: 0;
    padding: 0;
}

/* ===========================
   Containers
=========================== */
.container {
    background: #dde1e7;
    padding: 30px;
    margin-top: 30px;
    border-radius: 20px;
    box-shadow: -6px -6px 10px #ffffff, 6px 6px 10px rgba(94, 104, 121, 0.3);
}

/* ===========================
   Forms & Inputs
=========================== */
.form-control,
.form-select {
    background: #dde1e7;
    border: none;
    border-radius: 12px;
    box-shadow: inset -3px -3px 6px #fff, inset 3px 3px 6px rgba(0,0,0,0.1);
    padding: 10px 15px;
    color: #333;
    transition: 0.2s;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    box-shadow: inset -2px -2px 5px #fff, inset 2px 2px 5px rgba(0,0,0,0.15);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

/* Checkbox */
.form-check-input {
    width: 20px;
    height: 20px;
    background: #dde1e7;
    border: none;
    border-radius: 6px;
    box-shadow: -2px -2px 4px #fff, 2px 2px 4px rgba(0,0,0,0.1);
}

.form-check-input:checked {
    background-color: #0d6efd;
    box-shadow: inset -2px -2px 4px #fff, inset 2px 2px 4px rgba(0,0,0,0.2);
}

/* ===========================
   Buttons - Neumorphic Unified Style (Overrides Bootstrap)
=========================== */
.btn {
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    background: #dde1e7 !important;
    position: relative !important;
}

/* Base shadow for all button types */
.btn-primary, .btn-success, .btn-secondary, .btn-danger, .btn-warning, .btn-info,
.btn-light, .btn-dark {
    box-shadow: -3px -3px 6px #fff, 3px 3px 6px rgba(0,0,0,0.2) !important;
}

/* Hover effect – lift up and change background */
.btn-primary:hover, .btn-success:hover, .btn-secondary:hover, 
.btn-danger:hover, .btn-warning:hover, .btn-info:hover,
.btn-light:hover, .btn-dark:hover {
    transform: translateY(-2px) !important;
    box-shadow: -5px -5px 8px #fff, 5px 5px 8px rgba(0,0,0,0.2) !important;
}

/* Active / Press effect – push in */
.btn-primary:active, .btn-success:active, .btn-secondary:active,
.btn-danger:active, .btn-warning:active, .btn-info:active,
.btn-light:active, .btn-dark:active {
    transform: translateY(1px) !important;
    box-shadow: inset -3px -3px 6px #fff, inset 3px 3px 6px rgba(0,0,0,0.2) !important;
}

/* Focus outline removed (neumorphic style) */
.btn-primary:focus, .btn-success:focus, .btn-secondary:focus,
.btn-danger:focus, .btn-warning:focus, .btn-info:focus,
.btn-light:focus, .btn-dark:focus {
    outline: none !important;
}

/* Individual text colors and hover backgrounds */
.btn-primary { color: #0d6efd !important; }
.btn-primary:hover { background-color: #0d6efd !important; color: #fff !important; }

.btn-success { color: #198754 !important; }
.btn-success:hover { background-color: #198754 !important; color: #fff !important; }

.btn-secondary { color: #6c757d !important; }
.btn-secondary:hover { background-color: #6c757d !important; color: #fff !important; }

.btn-danger { color: #dc3545 !important; }
.btn-danger:hover { background-color: #dc3545 !important; color: #fff !important; }

.btn-warning { color: #ffc107 !important; }
.btn-warning:hover { background-color: #ffc107 !important; color: #fff !important; }

.btn-info { color: #0dcaf0 !important; }
.btn-info:hover { background-color: #0dcaf0 !important; color: #fff !important; }

.btn-light { color: #6c757d !important; }
.btn-light:hover { background-color: #f8f9fa !important; color: #212529 !important; }

.btn-dark { color: #343a40 !important; }
.btn-dark:hover { background-color: #343a40 !important; color: #fff !important; }

/* Small buttons (btn-sm) */
.btn-sm {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
}

/* Large buttons (btn-lg) */
.btn-lg {
    padding: 12px 24px !important;
    font-size: 1.1rem !important;
    border-radius: 14px !important;
}

/* Disabled buttons */
.btn:disabled, .btn.disabled {
    opacity: 0.6;
    transform: none !important;
    box-shadow: -3px -3px 6px #fff, 3px 3px 6px rgba(0,0,0,0.2) !important;
    cursor: not-allowed;
}


/* ===========================
   Buttons inside btn-group – retain neumorphic shadow
=========================== */
.btn-group .btn {
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: -3px -3px 6px #fff, 3px 3px 6px rgba(0,0,0,0.2) !important;
}
.btn-group .btn:first-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}
.btn-group .btn:last-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}
.btn-group .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: -5px -5px 8px #fff, 5px 5px 8px rgba(0,0,0,0.2) !important;
}
.btn-group .btn:active {
    transform: translateY(1px) !important;
    box-shadow: inset -3px -3px 6px #fff, inset 3px 3px 6px rgba(0,0,0,0.2) !important;
}
.btn-group .btn:focus {
    outline: none !important;
}
/* ===========================
   Special Case Button (used in improvement marks step 1)
=========================== */
.btn-special-case-sm {
    background: #dde1e7 !important;
    color: #ff07f3 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    box-shadow: -2px -2px 4px #fff, 2px 2px 4px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}
.btn-special-case-sm:hover {
    background-color: #ff07f3 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}
.btn-special-case-sm:active {
    transform: translateY(1px) !important;
    box-shadow: inset -2px -2px 4px #fff, inset 2px 2px 4px rgba(0,0,0,0.2) !important;
}
.btn-special-case-sm:focus {
    outline: none !important;
}

/* For larger special case button (if used) */
.btn-special-case {
    background: #dde1e7 !important;
    color: #ff07f3 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    box-shadow: -3px -3px 6px #fff, 3px 3px 6px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}
.btn-special-case:hover {
    background-color: #ff07f3 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}
.btn-special-case:active {
    transform: translateY(1px) !important;
    box-shadow: inset -3px -3px 6px #fff, inset 3px 3px 6px rgba(0,0,0,0.2) !important;
}
.btn-special-case:focus {
    outline: none !important;
}

/* ===========================
   Alerts
=========================== */
.alert {
    margin-top: 20px;
    background: #c8ffba;
    color: #388504;
    border: none;
    border-radius: 12px;
    box-shadow: -3px -3px 6px #fff, 3px 3px 6px rgba(0,0,0,0.1);
    padding: 12px 16px;
}

/* ===========================
   Navbar
=========================== */
.navbar {
    background-color: #dde1e7 !important;
    box-shadow: inset 3px 3px 7px #c1c5ca, inset -3px -3px 7px #ffffff;
}

.navbar-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.navbar-nav .nav-link {
    background: #dde1e7;
    box-shadow: -3px -3px 7px #ffffff73, 2px 2px 3px rgba(94, 104, 121, 0.288);
    border-radius: 12px;
    min-width: 120px;
    text-align: center;
    margin: 5px;
    padding: 8px 16px;
    color: #333 !important;
    font-weight: 500;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    box-shadow: inset -2px -2px 5px #ffffff73, inset 2px 2px 5px rgba(94,104,121,0.288);
    color: #0d6efd !important;
}

.navbar-brand {
    font-weight: bold;
    color: #0d6efd !important;
}

.navbar-toggler {
    border: none;
}

/* ===========================
   Cards & Neumorphic
=========================== */
.card,
.neumorphic-card {
    background: #dde1e7;
    border-radius: 20px;
    box-shadow: -6px -6px 10px #ffffff, 6px 6px 10px rgba(94,104,121,0.3);
    margin-bottom: 30px;
    padding: 20px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.card:hover,
.neumorphic-card:hover {
    box-shadow: inset -3px -3px 7px #ffffff, inset 3px 3px 7px rgba(94,104,121,0.3);
    transform: translateY(-3px);
}

.card-header {
    background: #dde1e7;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding: 20px;
    box-shadow: 0 4px 6px -6px rgba(94,104,121,0.1);
}

.card-header h5 {
    font-weight: 600;
    color: #0d6efd;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.card-body {
    padding: 25px;
}

/* ===========================
   Tables
=========================== */
.table-responsive {
    margin-top: 20px;
    background: #dde1e7;
    padding: 20px;
    border-radius: 15px;
    box-shadow: inset 3px 3px 6px #c1c5ca, inset -3px -3px 6px #ffffff;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
}

.table td {
    background: #f0f0f3;
    vertical-align: middle;
    text-align: center;
    padding: 10px;
    box-shadow: inset -1px -1px 2px #ffffff, inset 1px 1px 2px rgba(0,0,0,0.1);
}

/* ===========================
   Footer
=========================== */
.neumorphic-footer {
    background: #dde1e7;
    box-shadow: inset 4px 4px 8px #c1c5ca, inset -4px -4px 8px #ffffff;
    color: #333;
    text-align: center;
    padding: 20px 10px;
    margin-top: 40px;
    border-radius: 20px 20px 0 0;
    font-weight: 500;
}

.neumorphic-footer p {
    margin: 0;
    line-height: 1.6;
}

.footer-logo {
    margin-left: 10px;
    border-radius: 50%;
    background: #dde1e7;
    padding: 6px;
    box-shadow: -2px -2px 5px #fff, 2px 2px 5px rgba(0,0,0,0.1);
}


/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
    .neumorphic-footer {
        font-size: 14px;
        padding: 15px 5px;
    }

    .card-body {
        padding: 15px;
    }
    
    .form-select {
        padding: 10px 12px;
    }
    
    .btn {
        padding: 8px 16px !important;
    }
}

/* ===========================
   Grid for Form
=========================== */
.row.g-3 {
    margin-right: -10px;
    margin-left: -10px;
}

.row.g-3 > [class^="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* ===========================
   Custom Select Arrow
=========================== */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230d6efd' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12L8 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* ===========================
   Statistics Cards - Neumorphic Style
=========================== */
.stats-row {
    margin-bottom: 30px;
}

.stats-card {
    background: #dde1e7;
    border-radius: 20px;
    box-shadow: -6px -6px 10px #ffffff, 6px 6px 10px rgba(94, 104, 121, 0.3);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 20px;
    height: 100%;
}

.stats-card:hover {
    box-shadow: inset -3px -3px 7px #ffffff, inset 3px 3px 7px rgba(94, 104, 121, 0.3);
    transform: translateY(-5px);
}

.stats-card-primary { color: #0d6efd; }
.stats-card-success { color: #198754; }
.stats-card-danger { color: #dc3545; }
.stats-card-info { color: #0dcaf0; }
.stats-card-warning { color: #ffc107; }

.stats-card-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.8);
}

.stats-card-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
    color: #555;
}

.stats-card-btn {
    background: #dde1e7;
    border: none;
    border-radius: 12px;
    padding: 8px 20px;
    font-weight: 500;
    box-shadow: -3px -3px 6px #fff, 3px 3px 6px rgba(0, 0, 0, 0.2);
    transition: 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.stats-card-primary .stats-card-btn { color: #0d6efd; }
.stats-card-success .stats-card-btn { color: #198754; }
.stats-card-info .stats-card-btn { color: #0dcaf0; }
.stats-card-warning .stats-card-btn { color: #ffc107; }

.stats-card-btn:hover {
    box-shadow: inset -2px -2px 4px #fff, inset 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.stats-card-primary .stats-card-btn:hover { background-color: #0d6efd; color: #fff; }
.stats-card-success .stats-card-btn:hover { background-color: #198754; color: #fff; }
.stats-card-info .stats-card-btn:hover { background-color: #0dcaf0; color: #fff; }
.stats-card-warning .stats-card-btn:hover { background-color: #ffc107; color: #fff; }

@media (max-width: 768px) {
    .stats-card { padding: 20px 15px; margin-bottom: 15px; }
    .stats-card-title { font-size: 2rem; }
    .stats-card-text { font-size: 1rem; }
    .stats-card-btn { padding: 6px 15px; font-size: 0.85rem; }
}

/* ===========================
   Recent Activity / Summary Stats (extra)
=========================== */
.recent-activity-card {
    background: #dde1e7;
    border-radius: 20px;
    box-shadow: -6px -6px 10px #ffffff, 6px 6px 10px rgba(94, 104, 121, 0.3);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.recent-activity-card:hover {
    box-shadow: inset -3px -3px 7px #ffffff, inset 3px 3px 7px rgba(94, 104, 121, 0.3);
    transform: translateY(-3px);
}
.recent-activity-card .card-header {
    background: #dde1e7;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding: 20px;
}
.recent-activity-card .card-header h5 {
    font-weight: 600;
    color: #0d6efd;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.recent-activity-card .card-body {
    padding: 25px;
}
.recent-activity-card h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.recent-activity-card .list-group {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset -3px -3px 6px #fff, inset 3px 3px 6px rgba(0,0,0,0.1);
}
.recent-activity-card .list-group-item {
    background: #dde1e7;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px;
    transition: all 0.2s ease;
}
.recent-activity-card .list-group-item:last-child {
    border-bottom: none;
}
.recent-activity-card .list-group-item:hover {
    background: #d1d7e0;
    box-shadow: inset -2px -2px 5px #fff, inset 2px 2px 5px rgba(0,0,0,0.1);
}
.recent-activity-card .list-group-item strong {
    color: #0d6efd;
    font-weight: 600;
}
.recent-activity-card .list-group-item .text-muted {
    color: #6c757d !important;
}
@media (max-width: 768px) {
    .recent-activity-card .card-body { padding: 15px; }
    .recent-activity-card .list-group-item { padding: 12px; }
}

/* ===========================
   Summary Statistics Cards
=========================== */
.summary-stats-row {
    margin-bottom: 30px;
}
.summary-stats-card {
    background: #dde1e7;
    border-radius: 20px;
    box-shadow: -6px -6px 10px #ffffff, 6px 6px 10px rgba(94, 104, 121, 0.3);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 20px;
    height: 100%;
}
.summary-stats-card:hover {
    box-shadow: inset -3px -3px 7px #ffffff, inset 3px 3px 7px rgba(94, 104, 121, 0.3);
    transform: translateY(-5px);
}
.summary-stats-primary { color: #0d6efd; }
.summary-stats-success { color: #198754; }
.summary-stats-danger { color: #dc3545; }
.summary-stats-info { color: #0dcaf0; }
.summary-stats-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.8);
}
.summary-stats-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
    color: #555;
}
@media (max-width: 768px) {
    .summary-stats-card { padding: 20px 15px; margin-bottom: 15px; }
    .summary-stats-title { font-size: 2rem; }
    .summary-stats-text { font-size: 1rem; }
}

/* ===========================
   Neumorphic dropdown menu
=========================== */
.dropdown-menu {
    background: #e0e5ec;
    border: none;
    box-shadow: 
        9px 9px 16px #a3b1c6,
        -9px -9px 16px #ffffff;
    border-radius: 15px;
    padding: 10px 0;
}
.dropdown-menu .dropdown-item {
    color: #2b2e3b;
    background: transparent;
    border-radius: 12px;
    margin: 5px 10px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: none;
}
.dropdown-menu .dropdown-item:hover {
    background: #e0e5ec;
    color: #1a1d26;
    box-shadow: 
        inset 5px 5px 10px #a3b1c6,
        inset -5px -5px 10px #ffffff;
}