/* Modern Admin Panel Styles - Red, Blue, Yellow Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563eb;
    --primary-red: #dc2626;
    --primary-yellow: #f59e0b;
    --dark-bg: #1e293b;
    --darker-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --success: #10b981;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #2563eb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--darker-bg);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header h2 {
    opacity: 0;
    visibility: hidden;
}

.sidebar.collapsed .sidebar-menu a span {
    opacity: 0;
    visibility: hidden;
    width: 0;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 12px 0;
}

.sidebar.mobile-hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header i {
    color: var(--primary-yellow);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.mobile-menu-toggle.active {
    left: 275px;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--primary-blue);
}

.sidebar-menu a.active {
    background: rgba(37, 99, 235, 0.1);
    color: white;
    border-left-color: var(--primary-blue);
}

.sidebar-menu a.logout {
    color: var(--primary-red);
}

.sidebar-menu a.logout:hover {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: var(--primary-red);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

.main-content.no-sidebar {
    margin-left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
}

.main-content.no-sidebar .content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* Top Header Bar */
.top-header {
    background: white;
    padding: 15px 30px;
    border-bottom: 2px solid var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
}

.sidebar-toggle-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-toggle-btn i {
    transition: transform 0.3s;
}

.sidebar.collapsed + .main-content .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
}

.header-breadcrumb i {
    color: var(--primary-blue);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--light-bg);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.header-user i {
    color: var(--primary-blue);
    font-size: 16px;
}

.header-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--danger);
    color: white;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.header-logout:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.mobile-only {
    display: none;
}

.content-wrapper {
    flex: 1;
    padding: 30px;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
}

.login-box,
.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.login-header i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.login-title,
.login-header h1 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.login-subtitle,
.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.page-header h1 {
    font-size: 32px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--primary-blue);
}

.page-header p {
    color: var(--text-light);
    margin-top: 5px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.stat-blue .stat-icon {
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
}

.stat-red .stat-icon {
    background: linear-gradient(135deg, var(--primary-red), #ef4444);
}

.stat-yellow .stat-icon {
    background: linear-gradient(135deg, var(--primary-yellow), #fbbf24);
}

.stat-info h3 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* Content Section */
.content-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.content-section h2 i {
    color: var(--primary-blue);
}

/* Stock Grid */
.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stock-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.stock-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.stock-header h3 {
    font-size: 18px;
    color: var(--text-dark);
}

.stock-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stock-count {
    text-align: center;
}

.stock-count strong {
    display: block;
    font-size: 28px;
    color: var(--primary-blue);
}

.stock-count span {
    font-size: 12px;
    color: var(--text-light);
}

.stock-price strong {
    font-size: 18px;
    color: var(--primary-yellow);
}

.stock-actions {
    display: flex;
    gap: 10px;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table thead {
    background: var(--dark-bg);
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table .editable {
    cursor: pointer;
    position: relative;
}

.data-table .editable:hover {
    background: #f1f5f9;
}

.data-table .edit-icon {
    margin-left: 8px;
    color: var(--primary-blue);
    font-size: 12px;
}

.inline-edit {
    width: 100%;
    padding: 5px;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    font-size: 14px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--primary-red), #ef4444);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-blue {
    background: var(--primary-blue);
    color: white;
}

.btn-yellow {
    background: var(--primary-yellow);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* User Details Page Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: 28px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h2 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 12px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card-small {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.stat-card-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-word;
}

.stat-value.balance {
    color: var(--success);
}

.stat-value.banned {
    color: var(--danger);
}

.stat-value.active {
    color: var(--success);
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--light-bg);
}

.btn-small {
    padding: 10px 18px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-add {
    background: linear-gradient(135deg, var(--success), #22c55e);
    color: white;
}

.btn-add:hover {
    background: linear-gradient(135deg, #22c55e, var(--success));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-remove {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    color: white;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #fbbf24, var(--warning));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-ban {
    background: linear-gradient(135deg, var(--danger), #ef4444);
    color: white;
}

.btn-ban:hover {
    background: linear-gradient(135deg, #ef4444, var(--danger));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #991b1b, #7f1d1d);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.4);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-bg);
}

.pagination button {
    padding: 10px 20px;
    border: 2px solid var(--primary-blue);
    background: white;
    color: var(--primary-blue);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #cbd5e1;
    color: #cbd5e1;
}

.pagination span {
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    margin: 0 0 25px 0;
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 700;
}

.modal-content input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.modal-buttons .btn-secondary,
.modal-buttons .btn-primary {
    padding: 10px 24px;
    font-size: 14px;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
}

.data-table thead th {
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table tbody td {
    padding: 15px;
    font-size: 14px;
    color: var(--text-dark);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    animation: slideDown 0.3s;
}

.modal-content.modal-large {
    max-width: 700px;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--primary-blue);
}

.modal-header .close {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-header .close:hover {
    color: var(--primary-red);
}

.modal-content form {
    padding: 25px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--info);
    border-left: 4px solid var(--info);
}

/* Misc */
.price {
    color: var(--primary-yellow);
    font-weight: bold;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 3000;
    animation: slideIn 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .top-header {
        padding: 12px 15px;
    }
    
    .header-breadcrumb span {
        font-size: 14px;
    }
    
    .header-user .user-name {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 20px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stock-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .stat-card {
        flex-direction: row;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .login-box,
    .login-card {
        padding: 30px 20px;
        margin: 15px;
        max-width: 90%;
    }
    
    .login-logo i,
    .login-header i {
        font-size: 40px;
    }
    
    .login-title,
    .login-header h1 {
        font-size: 24px;
    }
    
    .login-subtitle,
    .login-header p {
        font-size: 13px;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    
    .account-data {
        max-width: 200px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 20px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .content-section h2 {
        font-size: 18px;
    }
    
    .data-table {
        font-size: 11px;
    }
    
    .stock-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stock-body {
        flex-direction: column;
        gap: 10px;
    }
    
    .stock-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .stock-actions .btn {
        width: 100%;
    }
    
    /* Extra small mobile login styles */
    .login-box,
    .login-card {
        padding: 25px 15px;
        margin: 10px;
        border-radius: 12px;
        max-width: 95%;
    }
    
    .login-logo i,
    .login-header i {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .login-title,
    .login-header h1 {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .login-subtitle,
    .login-header p {
        font-size: 12px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-control {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn.btn-primary {
        padding: 12px;
        font-size: 14px;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .main-content.no-sidebar {
        min-height: auto;
        padding: 20px 0;
    }
    
    .login-box,
    .login-card {
        padding: 20px;
        margin: 10px;
    }
    
    .login-logo i,
    .login-header i {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .login-title,
    .login-header h1 {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .login-subtitle,
    .login-header p {
        font-size: 11px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
}

/* Additional Utility Classes */
.amount-positive {
    color: var(--success) !important;
}

.amount-negative {
    color: var(--danger) !important;
}

.no-data {
    padding: 40px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}
