/* =====================================================
   Responsive Styles
   ===================================================== */

/* Tablets and below */
@media (max-width: 1024px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white-color);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: 15px;
    }

    .navbar-toggle {
        display: flex;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .dashboard-sidebar,
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-wrapper.sidebar-open .dashboard-sidebar,
    .admin-wrapper.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .header-search {
        display: none;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .features-section {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-header {
        padding: 15px 20px;
    }

    .page-title,
    .admin-page-title {
        font-size: 18px;
    }

    .header-right {
        gap: 10px;
    }

    .user-name,
    .admin-info {
        display: none;
    }

    .admin-content {
        padding: 20px 15px;
    }

    .table-responsive {
        overflow-x: scroll;
    }

    .data-table {
        min-width: 600px;
    }

    .welcome-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .welcome-banner h1 {
        font-size: 22px;
    }

    .quick-actions {
        flex-direction: column;
        width: 100%;
    }

    .quick-actions .btn {
        width: 100%;
    }

    .stats-grid-admin {
        grid-template-columns: 1fr;
    }

    .today-stats-grid {
        grid-template-columns: 1fr;
    }

    .filters-form {
        flex-direction: column;
    }

    .filters-form .form-group {
        width: 100%;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
    }

    .page-actions {
        width: 100%;
        flex-direction: column;
    }

    .page-actions .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .notification-dropdown,
    .user-dropdown,
    .admin-dropdown {
        width: calc(100vw - 40px);
    }

    .upload-area {
        padding: 40px 20px;
    }

    .upload-icon {
        font-size: 48px;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 16px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .pricing-price .amount {
        font-size: 42px;
    }

    .card {
        padding: 20px;
    }

    .stat-details h3 {
        font-size: 24px;
    }

    .stat-card-today .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .stat-info h3 {
        font-size: 20px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
    }

    .navbar-menu {
        overflow-y: auto;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .sidebar-toggle,
    .action-buttons {
        display: none !important;
    }

    body {
        background: white;
    }

    .card,
    .table-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
