/* ============================================
   TOPINV - Main Stylesheet
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ea5e9;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;
    
    --dark-gray: #0c4a6e;
    --light-gray: #e0f2fe;
    --border-gray: #bae6fd;
    --text-dark: #082f49;
    --text-light: #0c4a6e;
    
    --sidebar-width: 240px;
    --header-height: 70px;
    --spacing: 16px;
    --border-radius: 8px;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #e0f2fe;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* App container - main content area */
#app-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #cffafe 50%, #d4f6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
/* When login page is loaded into app-container */
#app-container > .login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe 0%, #cffafe 50%, #d4f6ff 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: white;
    border-radius: 16px;
    padding: 45px;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    border-radius: 16px 16px 0 0;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.login-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0f2fe;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

/* Ensure datetime-local inputs are visible and styled */
.form-group input[type="datetime-local"],
.form-group input[type="date"],
.form-group input[type="time"] {
    color: var(--text-dark);
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    margin: 18px 0 25px 0;
    gap: 10px;
}

.form-group.checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-group.checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
}

.login-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px solid #e0f2fe;
    padding-top: 20px;
    margin-top: 25px;
}

.login-footer p {
    margin: 8px 0;
    font-weight: 500;
}

.login-footer small {
    display: block;
    margin: 5px 0;
    opacity: 0.8;
    font-size: 11px;
}

.status-online {
    color: var(--success-color);
    font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    margin-top: 8px;
}

.btn-secondary {
    background-color: #e0f2fe;
    color: #0284c7;
    border: 2px solid #0284c7;
    font-weight: 600;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #cffafe;
    border-color: #0284c7;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background-color: #d97706;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #059669;
}

.btn-info {
    background-color: #0ea5e9;
    color: white;
}

.btn-info:hover:not(:disabled) {
    background-color: #0284c7;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
    background-color: rgba(14, 165, 233, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-logout {
    width: 100%;
    background-color: var(--danger-color);
    color: white;
    justify-content: center;
}

.btn-logout:hover {
    background-color: #dc2626;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 4px solid;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #22c55e;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #ef4444;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #f59e0b;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background-color: #f0f9ff;
    color: #0c4a6e;
    border-color: #0ea5e9;
    border-left: 4px solid #0ea5e9;
}

.alert h4 {
    margin-bottom: 8px;
    font-weight: 600;
}

.alert ul {
    margin-left: 20px;
    margin-top: 8px;
}

.alert ul li {
    margin-bottom: 4px;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-container {
    display: flex;
    height: 100vh;
    background-color: #ffffff;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    color: white;
    overflow-y: auto;
    box-shadow: 4px 0 12px rgba(14, 165, 233, 0.2);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
}

.sidebar-header h2 {
    font-size: 24px;
    margin-bottom: 4px;
    color: white;
    font-weight: 700;
}

.user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
    margin: 4px 0;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding-left: 18px;
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    border-left-color: white;
    font-weight: 600;
}

.nav-item .icon {
    font-size: 18px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-footer .nav-item {
    margin-bottom: 10px;
    border-left: none;
}

.sidebar-footer .nav-item:last-child {
    margin-bottom: 0;
}

/* Hide mobile logout nav item on desktop */
.mobile-logout-nav {
    display: none;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-header {
    background-color: white;
    padding: 16px 32px;
    border-bottom: 2px solid #e0f2fe;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
}

.header-left h1 {
    font-size: 28px;
    color: #0284c7;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background-color: #ffffff;
}

.section {
    display: none;
    animation: fadeIn 0.3s;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.1);
    border: 1px solid #e0f2fe;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    color: #0284c7;
    font-weight: 700;
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table thead {
    background-color: #e0f2fe;
    border-bottom: 2px solid #0284c7;
}

table thead th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
    color: #0284c7;
}

table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e0f2fe;
    vertical-align: middle;
}

table tbody tr:hover {
    background-color: #f0f9fe;
}

table tbody tr.empty-state td {
    text-align: center;
    color: var(--text-light);
    padding: 32px 12px;
}

table tbody tr.loading td {
    text-align: center;
    color: var(--text-light);
    padding: 32px 12px;
}

.text-center {
    text-align: center;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background-color: #e0f2fe;
    color: #0284c7;
}

.badge-purchase {
    background-color: #e0f2fe;
    color: #0284c7;
}

.badge-void {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-adjustment {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-closed {
    background-color: #e5e7eb;
    color: #374151;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.stock-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background-color: #d1fae5;
    color: #065f46;
}

.stock-badge.low-stock {
    background-color: #fef3c7;
    color: #92400e;
}

.stock-badge.out-of-stock {
    background-color: #fee2e2;
    color: #7f1d1d;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    min-width: 400px;
}

.modal-lg .modal-content {
    min-width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-gray);
}

.modal-header h2 {
    font-size: 20px;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.error-message {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 6px;
}

.success-message {
    color: var(--success-color);
    font-size: 13px;
    margin-top: 6px;
}

/* ============================================
   UTILITIES
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ============================================
   REPORTS SECTION
   ============================================ */
.report-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.report-panel {
    margin-top: 20px;
}

.report-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.report-summary h4 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.summary-card.highlight {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.summary-card.warning {
    border-left: 4px solid #f59e0b;
}

.summary-card.danger {
    border-left: 4px solid #ef4444;
}

.summary-card label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-card.highlight label {
    color: rgba(255,255,255,0.9);
}

.summary-card .value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.summary-card.highlight .value {
    color: white;
}

.summary-card .value.large {
    font-size: 32px;
}

.summary-card .amount {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #0ea5e9;
}

.summary-card .amount.positive {
    color: #10b981;
}

.summary-card .amount.negative {
    color: #ef4444;
}

.summary-card small {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

.summary-card.highlight small {
    color: rgba(255,255,255,0.8);
}

.report-table {
    margin-top: 30px;
}

.report-table h4 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
}

.report-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0f2fe;
}

.report-section h4 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
}

.badge-sale {
    background: #10b981;
    color: white;
}

.badge-purchase {
    background: #0ea5e9;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

@media (max-width: 1200px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.button-group .btn {
    flex: 1;
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 8px 12px;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    font-size: 14px;
    flex: 1;
    min-width: 150px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.details-box {
    background-color: var(--light-gray);
    padding: 12px;
    border-radius: var(--border-radius);
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar-width {
        --sidebar-width: 180px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 13px;
    }
    
    table thead th,
    table tbody td {
        padding: 10px;
    }
}

/* Mobile Devices (Below 768px) */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    html, body {
        font-size: 14px;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        flex: 1;
        padding: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        padding: 12px 14px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 13px;
        flex-shrink: 0;
    }

    .nav-item.active {
        border-bottom: 3px solid white;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .nav-item:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .sidebar-footer {
        display: none;
    }

    /* Show mobile logout as inline nav item */
    .mobile-logout-nav {
        display: flex !important;
    }

    .mobile-logout-nav span:not(.icon) {
        display: none;
    }

    .top-header {
        padding: 12px 16px;
        gap: 10px;
    }

    .header-left h1 {
        font-size: 20px;
    }

    .header-right {
        font-size: 12px;
        gap: 10px;
    }

    .content-wrapper {
        padding: 12px;
        overflow-y: auto;
    }

    .section-content {
        padding: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header h2 {
        font-size: 18px;
        width: 100%;
    }

    .section-header .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95vw;
        max-height: 90vh;
        padding: 16px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }

    .btn-block {
        width: 100%;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group .btn {
        width: 100%;
    }

    table {
        font-size: 12px;
    }

    table thead th,
    table tbody td {
        padding: 8px;
    }

    table thead th {
        font-size: 12px;
    }

    .filters {
        flex-direction: column;
        gap: 10px;
    }

    .filters input,
    .filters select {
        width: 100%;
        min-width: unset;
        padding: 12px;
        font-size: 16px;
    }

    .action-icons {
        gap: 4px;
    }

    .action-icons button {
        padding: 6px 8px;
        font-size: 12px;
    }

    .login-box {
        padding: 24px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .details-box {
        font-size: 12px;
        padding: 12px;
    }
}

/* Small Smartphones (Below 480px) */
@media (max-width: 480px) {
    html, body {
        font-size: 13px;
    }

    .dashboard-container {
        height: auto;
        min-height: 100vh;
    }

    .top-header {
        flex-direction: column;
        padding: 12px;
    }

    .header-left h1 {
        font-size: 18px;
    }

    .header-right {
        width: 100%;
        font-size: 11px;
    }

    .content-wrapper {
        padding: 8px;
    }

    .section-content {
        padding: 12px;
        border-radius: 4px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .modal-content {
        width: 100vw;
        margin: 0;
        border-radius: 0;
    }

    .form-group label {
        font-size: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .btn {
        padding: 11px 14px;
        font-size: 13px;
        min-height: 40px;
    }

    table {
        font-size: 11px;
    }

    table thead th,
    table tbody td {
        padding: 6px 4px;
    }

    .metric-value {
        font-size: 22px;
    }

    .metric-label {
        font-size: 11px;
    }

    .badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .login-box {
        padding: 20px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .status-box {
        padding: 16px;
    }

    .status-box h3 {
        font-size: 16px;
    }
}
