/* =============================================
   RESPONSIVE CSS - KUYOU Auto Works
   ============================================= */

/* ========== LARGE TABLETS ========== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== TABLETS ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 15px 0;
        background: #1a2332;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        display: block;
        padding: 12px 20px;
    }
    
    .hamburger {
        display: block;
    }
    
    /* Hero */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    /* Booking */
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .booking-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-mini {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    /* Dashboard */
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Receipt */
    .receipt {
        padding: 20px;
    }
    
    .receipt-header {
        flex-direction: column;
    }
    
    .receipt-meta {
        text-align: left;
    }
    
    .receipt-info {
        grid-template-columns: 1fr;
    }
    
    .receipt-footer {
        grid-template-columns: 1fr;
    }
}

/* ========== MOBILE PHONES ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    .section-title {
        font-size: 22px !important;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-filter {
        flex-direction: column;
    }
    
    .service-filter input,
    .service-filter select {
        width: 100%;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Stats Grid */
    .stats-grid-mini {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Tracking */
    .search-group {
        flex-direction: column;
    }
    
    .search-group input {
        width: 100%;
    }
    
    .tracking-header {
        flex-direction: column;
    }
    
    .timeline {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-step {
        flex-direction: row;
        gap: 12px;
        justify-content: flex-start;
    }
    
    /* Dashboard */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .stat-number {
        font-size: 22px;
    }
    
    /* Admin Tables - Horizontal Scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        font-size: 12px;
        min-width: 600px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
    
    /* Modals */
    .modal-content {
        margin: 10px;
        max-width: 100%;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    /* Forms */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        text-align: center;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar-kuyou,
    .footer-kuyou,
    .hero-buttons,
    .btn,
    .receipt-actions,
    .sidebar-toggle,
    .admin-sidebar,
    .filter-bar,
    .quick-actions {
        display: none !important;
    }
    
    .admin-main {
        margin-left: 0 !important;
        padding: 20px !important;
    }
    
    .receipt {
        box-shadow: none !important;
        padding: 20px !important;
    }
    
    .receipt-page {
        background: white !important;
        padding: 0 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .stats-grid,
    .admin-grid-2 {
        display: block !important;
    }
    
    .stat-card,
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ========== UTILITY ========== */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    .show-mobile {
        display: block;
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #999;
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #22c55e;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }




