/* Sufee Admin Template - Professional Dashboard Styles */
/* تم إزالة Google Fonts لحل مشكلة DNS - سنستخدم خطوط النظام */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
}

/* Main Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: #2c3e50;
    color: #ecf0f1;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #34495e;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-image: url('images/logo.png'); /* ← هنا تضع المسار */
    background-size: cover;
    background-position: center;
    border-radius: 8px;

}

/* Navigation */
.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1.5rem 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin: 0.125rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.nav-item.active .nav-link {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left: 3px solid #3498db;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-right: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Header */
.top-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #4a5568;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background-color: #f7fafc;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    right: 12px;
    color: #a0aec0;
    font-size: 0.875rem;
}

.search-box input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    width: 300px;
    background-color: #f7fafc;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-notifications {
    display: flex;
    gap: 1rem;
}

.notification-icon {
    position: relative;
    color: #4a5568;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.notification-icon:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

.notification-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #e53e3e;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.user-menu:hover {
    background-color: #f7fafc;
}

.user-avatar {
    font-size: 2rem;
    color: #3498db;
}

.user-avatar-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.user-avatar-link:hover {
    color: #2980b9;
    transform: scale(1.05);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.welcome-text {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 400;
    line-height: 1;
}

.user-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.875rem;
    line-height: 1;
}

.logout-btn {
    color: #e53e3e;
    font-size: 1.125rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background-color: #fed7d7;
    color: #c53030;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 1.5rem;
    background-color: #f5f5f5;
}

/* Daily Summary Header */
.daily-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.summary-date {
    font-size: 0.875rem;
    color: #718096;
    background: #f7fafc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Refresh Summary Button */
.btn-refresh-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.btn-refresh-summary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-refresh-summary:active {
    transform: translateY(0);
}

.btn-refresh-summary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-refresh-summary i {
    font-size: 1rem;
}

/* Animation for cards */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 3px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.card-label {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Card Colors */
.card-blue {
    border-left-color: #3498db;
}

.card-blue .card-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.card-red {
    border-left-color: #e74c3c;
}

.card-red .card-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.card-yellow {
    border-left-color: #f39c12;
}

.card-yellow .card-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.card-green {
    border-left-color: #27ae60;
}

.card-green .card-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

/* Tables */
.table-container {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
}

.table-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.table {
    margin: 0;
    font-size: 0.875rem;
}

.table th {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.875rem;
    padding: 1rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    border-top: 1px solid #f1f5f9;
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    color: #2d3748;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc;
}

.table tbody tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.15s ease;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-success {
    background-color: #27ae60 !important;
}

.bg-warning {
    background-color: #f39c12 !important;
}

/* Sidebar Collapsed State */
.admin-layout.sidebar-collapsed .sidebar {
    width: 70px;
}

.admin-layout.sidebar-collapsed .logo-text,
.admin-layout.sidebar-collapsed .nav-link span,
.admin-layout.sidebar-collapsed .nav-section-title {
    display: none;
}

.admin-layout.sidebar-collapsed .main-content {
    margin-right: 70px;
}

.admin-layout.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        transform: translateX(100%);
    }
    
    .main-content,
    .content-area {
        margin-right: 0;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
}

/* Reports Page Styles */
.reports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.reports-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.reports-actions {
    display: flex;
    gap: 0.75rem;
}

.reports-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Statistics Page Styles */
.statistics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.statistics-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.statistics-actions {
    display: flex;
    gap: 0.75rem;
}

.statistics-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.statistics-content {
    margin-bottom: 2rem;
}

.statistics-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.statistics-card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.statistics-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.statistics-card-body {
    padding: 1.5rem;
}

.statistics-alert {
    background: #e3f2fd;
    color: #1976d2;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.statistics-alert i {
    font-size: 1.25rem;
}

/* Support Page Styles */
.support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.support-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.support-content {
    margin-bottom: 2rem;
}

.support-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.support-card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.support-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.support-card-body {
    padding: 1.5rem;
}

/* Profile Page Styles */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.profile-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.profile-content {
    margin-bottom: 2rem;
}

.profile-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.profile-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.profile-card-body {
    padding: 1.5rem;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.profile-info-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.profile-info-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.profile-info-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
}

/* Reports Summary Cards */
.reports-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    margin-left: 1rem; /* إضافة margin لمنع التداخل مع الشريط الجانبي */
}

.summary-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
}

.summary-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
}

/* Summary Card Colors */
.summary-card-blue {
    border-left-color: #3498db;
}

.summary-card-blue .summary-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.summary-card-green {
    border-left-color: #27ae60;
}

.summary-card-green .summary-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.summary-card-orange {
    border-left-color: #f39c12;
}

.summary-card-orange .summary-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.summary-card-purple {
    border-left-color: #9b59b6;
}

.summary-card-purple .summary-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* Devices Section */
.devices-section {
    margin-top: 2rem;
    margin-left: 1rem; /* إضافة margin لمنع التداخل مع الشريط الجانبي */
}

.devices-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.devices-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.devices-header .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Reports Details Section */
.reports-details-section {
    margin-top: 2rem;
    margin-left: 1rem; /* إضافة margin لمنع التداخل مع الشريط الجانبي */
}

.reports-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.reports-details-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.reports-details-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reports-count {
    font-size: 0.875rem;
    color: #718096;
    background: #f7fafc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Reports Table Container */
.reports-table-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.reports-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.reports-table thead {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.reports-table thead th {
    padding: 1rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    border: none;
    letter-spacing: 0.3px;
}

.reports-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.reports-table tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reports-table tbody td {
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    text-align: center;
    border: none;
    vertical-align: middle;
}

/* Report Table Cell Styles */
.report-date {
    font-weight: 600;
    color: #2d3748;
}

.report-sessions {
    font-weight: 600;
    color: #3498db;
}

.report-watch-time {
    font-weight: 600;
    color: #27ae60;
}

.report-upload {
    font-weight: 600;
    color: #f39c12;
}

.report-download {
    font-weight: 600;
    color: #e74c3c;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-synced {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.view-btn {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.view-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Reports Pagination */
.reports-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    font-size: 0.875rem;
    color: #718096;
}

.pagination {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #718096;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 2.5rem;
}

.page-item.active .page-link {
    background: #3498db;
    border-color: #3498db;
    color: white;
    font-weight: 600;
}

.page-item:not(.disabled):not(.active) .page-link:hover {
    background: #f8fafc;
    border-color: #3498db;
    color: #3498db;
}

.page-item.disabled .page-link {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #cbd5e0;
    cursor: not-allowed;
}

/* Utility Classes */
.text-muted {
    color: #718096 !important;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablets and below (max-width: 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-right: 200px;
    }
    
    .admin-layout.sidebar-collapsed .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .admin-layout.sidebar-collapsed .main-content {
        margin-right: 0;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    /* Hide sidebar by default on mobile */
    .admin-layout .sidebar {
        position: fixed !important;
        right: -270px !important;
        top: 0 !important;
        width: 250px !important;
        height: 100vh !important;
        transition: right 0.3s ease-in-out !important;
        z-index: 1001 !important;
        overflow-y: auto !important;
        background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%) !important;
        box-shadow: none !important;
        transform: none !important;
    }
    
    /* Show sidebar when mobile-open class is added */
    .admin-layout .sidebar.mobile-open {
        right: 0 !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Ensure all sidebar content is visible */
    .admin-layout .sidebar *,
    .admin-layout .sidebar.mobile-open * {
        visibility: visible !important;
        opacity: 1 !important;
        /* display: block !important; */
    }
    
    .admin-layout .sidebar .logo-text,
    .admin-layout .sidebar .nav-link span {
        display: inline !important;
    }
    
    /* Overlay backdrop when sidebar is open */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    .sidebar-backdrop.active {
        display: block;
    }
    
    .main-content {
        margin-right: 0;
        width: 100%;
    }
    
    .admin-layout.sidebar-collapsed .main-content {
        margin-right: 0;
    }
    
    .admin-layout.sidebar-collapsed .sidebar {
        right: -250px;
    }
    
    /* Top Header */
    .top-header {
        padding: 0.5rem;
    }
    
    .search-box {
        display: none;
    }
    
    .header-notifications {
        gap: 0.5rem;
    }
    
    .user-info {
        display: none;
    }
    
    /* Content Area */
    .content-area {
        padding: 1rem;
    }
    
    /* Dashboard Cards */
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .card-value {
        font-size: 1.25rem;
    }
    
    .card-label {
        font-size: 0.75rem;
    }
    
    /* Daily Summary Header */
    .daily-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .summary-header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-refresh-summary {
        width: 100%;
    }
    
    /* Table Container */
    .table-container {
        overflow-x: auto;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    /* Reports Summary Cards */
    .reports-summary-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .summary-card {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .summary-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Reports Header */
    .reports-header,
    .profile-header,
    .statistics-header,
    .support-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .reports-actions,
    .statistics-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .reports-actions .btn,
    .statistics-actions .btn {
        width: 100%;
    }
    
    /* Reports Table */
    .reports-table-container {
        overflow-x: auto;
    }
    
    .reports-table {
        min-width: 700px;
    }
    
    /* Reports Pagination */
    .reports-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination {
        width: 100%;
        justify-content: center;
    }
    
    /* Profile Info Grid */
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Devices Section */
    .devices-section .row {
        margin: 0;
    }
    
    .devices-section .col-md-3 {
        padding: 0.5rem;
    }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    /* Dashboard Cards - Stack vertically */
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .dashboard-card {
        padding: 1rem;
        min-height: auto;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    .card-label {
        font-size: 0.875rem;
    }
    
    /* Daily Summary Header */
    .summary-title {
        font-size: 1.25rem;
    }
    
    .summary-date {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Reports Summary Cards - Stack vertically */
    .reports-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .summary-card {
        flex-direction: row;
        padding: 1rem;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
    }
    
    .summary-value {
        font-size: 1.25rem;
    }
    
    /* Table adjustments */
    .table-container,
    .reports-table-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    /* Header buttons */
    .reports-header .btn,
    .profile-header .btn,
    .statistics-header .btn,
    .support-header .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    /* Top Header */
    .sidebar-toggle {
        padding: 0.5rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer {
        font-size: 0.75rem;
        padding: 0.75rem 0;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 8px;
    }
}

/* Very Small Devices (max-width: 320px) */
@media (max-width: 320px) {
    .content-area {
        padding: 0.5rem;
    }
    
    .dashboard-card {
        padding: 0.75rem;
    }
    
    .card-value {
        font-size: 1.25rem;
    }
    
    .card-label {
        font-size: 0.75rem;
    }
    
    .summary-title {
        font-size: 1rem;
    }
    
    .btn-refresh-summary {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}