/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* ===== TABLETS & SMALL LAPTOPS ===== */
@media(max-width:992px) {

    /* Home Page */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 5% 80px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image img {
        max-width: 400px;
        margin: auto;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .why-left ul {
        justify-content: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* Tracking Page */
    .tracking-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tracking-preview {
        max-width: 400px;
        margin: auto;
    }

    /* Dashboard */
    .dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        display: none;
    }

    /* Mobile sidebar toggle */
    .sidebar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        animation: slideIn 0.3s ease;
    }

    /* Admin Pages */
    .admin-container {
        padding: 25px;
    }

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

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

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

    .shipment-table-container {
        padding: 10px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content ul {
        text-align: left;
    }

    .tracking-search-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
        background: white;
    }

    .tracking-search-box input {
        padding: 15px;
        background: #f5f5f5;
        border-radius: 12px;
    }

    .tracking-search-box button {
        width: 100%;
        padding: 16px;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
    }

    .shipment-details-grid {
        grid-template-columns: 1fr;
    }

    .stats-summary {
        justify-content: center;
    }

    .btn-group {
        flex-direction: column;
    }

    .cancel-btn {
        text-align: center;
    }
}

/* ===== MOBILE PHONES ===== */
@media(max-width:768px) {

    /* Navbar */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: #0D1B3D !important;
        padding: 10px 0;
    }

    .mobile-btn {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        color: white;
        cursor: pointer;
    }

    header.sticky .mobile-btn {
        color: #0D1B3D;
    }

    /* Hero */
    .hero h1 {
        font-size: 40px;
    }

    .hero {
        padding-top: 160px;
    }

    .hero-image img {
        max-width: 300px;
    }

    /* Services */
    .service-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: auto;
    }

    .service-card {
        padding: 30px;
    }

    /* Stats */
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 60px 5%;
    }

    .stats h2 {
        font-size: 36px;
    }

    /* Tracking */
    .tracking-card {
        padding: 30px;
    }

    .tracking-card form {
        flex-direction: column;
    }

    .tracking-card button {
        width: 100%;
    }

    .tracking-left h2 {
        font-size: 32px;
    }

    .tracking-preview {
        padding: 25px;
    }

    /* Dashboard */
    .dashboard-cards {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .dashboard-cards div {
        padding: 20px;
    }

    .dashboard-cards h2 {
        font-size: 28px;
    }

    main {
        padding: 20px;
    }

    /* Manage Shipments */
    .shipment-table {
        min-width: 600px;
        font-size: 13px;
    }

    .shipment-table th,
    .shipment-table td {
        padding: 10px 12px;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input {
        min-width: auto;
        width: 100%;
    }

    .action-group {
        flex-direction: column;
        gap: 5px;
    }

    .action-btn {
        width: 100%;
        text-align: center;
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Form Pages */
    .form-container {
        padding: 25px;
    }

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

    .page-header h1 {
        font-size: 24px;
    }

    /* Stats Summary */
    .stats-summary {
        gap: 10px;
    }

    .stat-chip {
        padding: 10px 16px;
        font-size: 13px;
        width: calc(50% - 10px);
    }

    /* Contact */
    .contact-section {
        padding: 60px 5%;
    }

    .contact-grid {
        gap: 30px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid a {
        text-align: center;
    }

    /* Tracking Hero */
    .tracking-hero {
        padding: 120px 5% 40px;
    }

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

    .tracking-hero p {
        font-size: 15px;
    }

    /* Tracking Results */
    .result-card {
        padding: 25px;
    }

    .result-header .tracking-number {
        font-size: 20px;
    }

    .status-badge-large {
        font-size: 14px;
        padding: 8px 18px;
    }

    .detail-item {
        padding: 14px 16px;
    }

    .detail-item .value {
        font-size: 14px;
    }

    .timeline-item {
        padding: 0 0 25px 20px;
    }

    .not-found {
        padding: 40px 25px;
    }

    /* Why Us */
    .why-left h2 {
        font-size: 30px;
    }

    .experience {
        padding: 40px 30px;
    }

    .experience h1 {
        font-size: 50px;
    }

    /* Section Headings */
    .section-heading h2 {
        font-size: 30px;
    }

    /* Modal/Alert fixes */
    .toast {
        max-width: 90%;
        font-size: 14px;
        padding: 14px 20px;
    }
}

/* ===== SMALL PHONES ===== */
@media(max-width:480px) {

    /* Hero */
    .hero h1 {
        font-size: 28px;
    }

    .hero {
        padding: 140px 5% 60px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    /* Stats */
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stats h2 {
        font-size: 28px;
    }

    .stats p {
        font-size: 14px;
    }

    /* Dashboard */
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-cards div {
        padding: 15px;
    }

    .dashboard-cards h2 {
        font-size: 24px;
    }

    .dashboard-cards h3 {
        font-size: 14px;
    }

    /* Section Headings */
    .section-heading h2 {
        font-size: 26px;
    }

    .section-heading span {
        font-size: 13px;
    }

    /* About */
    .about-content h2 {
        font-size: 28px;
    }

    .about-content {
        gap: 30px;
    }

    /* Services */
    .service-card {
        padding: 25px;
    }

    .service-card i {
        font-size: 36px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    /* Tracking */
    .tracking-left h2 {
        font-size: 26px;
    }

    .tracking-preview {
        padding: 20px;
    }

    .status {
        gap: 12px;
    }

    .status i {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .status h4 {
        font-size: 14px;
    }

    /* Tracking Results */
    .shipment-details-grid {
        gap: 12px;
    }

    .detail-item {
        padding: 12px 14px;
    }

    .timeline-item {
        padding: 0 0 20px 15px;
    }

    .timeline-item .timeline-status {
        font-size: 14px;
    }

    /* Login Page */
    .login-container {
        padding: 30px 25px;
        margin: 0 15px;
    }

    .login-container h1 {
        font-size: 28px;
    }

    /* Forms */
    .form-container {
        padding: 20px;
    }

    .form-section h3 {
        font-size: 16px;
    }

    .form-grid input,
    .form-grid select,
    .form-grid textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 15px;
    }

    /* Contact */
    .contact-info h3 {
        font-size: 18px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px 16px;
        font-size: 14px;
    }

    .contact-form button {
        padding: 14px;
        font-size: 15px;
    }

    /* Footer */
    footer {
        padding: 50px 5% 20px;
    }

    .footer-grid h2 {
        font-size: 22px;
    }

    .footer-grid h3 {
        font-size: 16px;
    }

    .footer-grid p,
    .footer-grid a {
        font-size: 14px;
    }

    /* Manage Shipments */
    .shipment-table {
        min-width: 500px;
        font-size: 12px;
    }

    .shipment-table th,
    .shipment-table td {
        padding: 8px 10px;
    }

    .status-badge {
        font-size: 10px;
        padding: 4px 10px;
        min-width: 60px;
    }

    .stat-chip {
        width: 100%;
    }

    .stat-chip .count {
        font-size: 16px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
}

.toast-success {
    background: #2ecc71;
}

.toast-error {
    background: #e74c3c;
}

.toast-info {
    background: #3498db;
}

.toast-warning {
    background: #f39c12;
}

.toast-close {
    animation: slideOut 0.3s ease forwards;
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }

    .sidebar {
        display: none !important;
    }

    .dashboard {
        display: block !important;
    }

    main {
        padding: 20px !important;
    }
}