/* ============================================
   ADASOMI LOGISTICS - CUSTOM STYLES
   ============================================ */

/* ============================================
   GLOBAL STYLES & RESETS
   ============================================ */

.mil-logo {
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 2px;
    color: #0575bc;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.mil-logo:hover {
    color: #004d7c;
}

.mil-no-wrap {
    white-space: nowrap;
}

/* ============================================
   PRELOADER ANIMATION
   ============================================ */

.mil-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mil-preloader-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.mil-pos-abs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.mil-animation-1 {
    opacity: 1;
    animation: fadeOut 1s ease-in-out 2s forwards;
}

.mil-animation-2 {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out 2.5s forwards;
}

.mil-reveal-frame {
    position: relative;
    overflow: hidden;
}

.mil-reveal-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0575bc;
    transform: translateX(-100%);
    animation: reveal 0.8s ease-in-out 2.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes reveal {
    to {
        transform: translateX(100%);
    }
}

/* ============================================
   MENU FRAME & NAVIGATION - CRITICAL FIXES
   ============================================ */

.mil-menu-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    overflow-x: hidden;
    visibility: visible;
    opacity: 1;
    display: block;
}

.mil-menu-frame.mil-active {
    transform: translateX(0);
}

.mil-menu-content {
    padding: 120px 0 80px;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Container and Row Fixes */
.mil-menu-frame .container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: block;
    visibility: visible;
    opacity: 1;
}

.mil-menu-frame .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    visibility: visible;
}

.mil-menu-frame .col-xl-5,
.mil-menu-frame .col-xl-7 {
    position: relative;
    width: 100%;
    padding: 0 15px;
    display: block;
    visibility: visible;
}

@media (min-width: 1200px) {
    .mil-menu-frame .col-xl-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    .mil-menu-frame .col-xl-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
}

/* Main Navigation */
.mil-main-menu {
    display: block;
}

.mil-main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.mil-main-menu > ul > li {
    margin-bottom: 15px;
    display: block;
    position: relative;
}

.mil-main-menu > ul > li > a {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.mil-main-menu > ul > li > a:hover,
.mil-main-menu > ul > li.mil-active > a {
    color: #0575bc;
}

/* Dropdown Menu */
.mil-has-children {
    position: relative;
}

.mil-has-children > ul {
    position: relative;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.9);
    border-left: 2px solid #0575bc;
    display: block;
}

.mil-has-children > ul > li {
    margin-bottom: 8px;
    display: block;
}

.mil-has-children > ul > li > a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.mil-has-children > ul > li > a:hover {
    color: #ffffff;
}

/* Menu Right Panel */
.mil-menu-right {
    padding: 30px 0;
    display: block;
}

.mil-menu-right h6 {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.mil-menu-right p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.mil-menu-list {
    list-style: none;
    padding: 0;
    display: block;
}

.mil-menu-list li {
    margin-bottom: 12px;
    display: block;
}

.mil-menu-list li a {
    text-decoration: none;
    transition: color 0.3s;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: inline-block;
}

.mil-menu-list li a:hover {
    color: #ffffff;
}

/* Menu Divider */
.mil-divider {
    height: 1px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.2);
}

/* Menu Frame Top */
.mil-menu-frame .mil-frame-top {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1002;
}

/* ============================================
   MENU BUTTON (HAMBURGER/CLOSE)
   ============================================ */

.mil-menu-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    position: relative;
    pointer-events: auto;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mil-menu-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 2px;
    background: #000000;
    transition: all 0.3s ease;
}

.mil-menu-btn span::before,
.mil-menu-btn span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #000000;
    transition: all 0.3s ease;
}

.mil-menu-btn span::before {
    top: -8px;
}

.mil-menu-btn span::after {
    bottom: -8px;
}

.mil-menu-btn:hover span,
.mil-menu-btn:hover span::before,
.mil-menu-btn:hover span::after {
    background: #0575bc;
}

/* Menu Button - When menu is open (X icon) */
.mil-menu-frame.mil-active .mil-menu-btn span {
    background: transparent;
}

.mil-menu-frame.mil-active .mil-menu-btn span::before,
.mil-menu-frame.mil-active .mil-menu-btn span::after {
    background: #ffffff;
}

.mil-menu-frame.mil-active .mil-menu-btn span::before {
    transform: rotate(45deg);
    top: 0;
}

.mil-menu-frame.mil-active .mil-menu-btn span::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.mil-menu-frame.mil-active .mil-menu-btn:hover span::before,
.mil-menu-frame.mil-active .mil-menu-btn:hover span::after {
    background: #0575bc;
}

/* Menu Button in Frame (floating button) */
.mil-frame .mil-menu-btn {
    position: relative;
    z-index: 1002;
}

/* When menu is open, the frame button also becomes X */
.mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn span {
    background: transparent;
}

.mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn span::before,
.mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn span::after {
    background: #ffffff;
}

.mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn span::before {
    transform: rotate(45deg);
    top: 0;
}

.mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn span::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ============================================
   FRAME & CURTAIN
   ============================================ */

.mil-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.mil-frame-top {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    z-index: 1002;
}

.mil-frame-bottom {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.mil-current-page {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.mil-back-to-top a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.mil-back-to-top a:hover {
    color: #ffffff;
}

/* Curtain */
.mil-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.mil-curtain.mil-active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer {
    background-color: #000000;
}

footer h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
    letter-spacing: 1px;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 14px;
}

/* Footer Links */
.mil-footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mil-footer-menu li {
    margin-bottom: 12px;
}

.mil-footer-menu a,
.mil-menu-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.mil-footer-menu a:hover,
.mil-menu-list a:hover {
    color: #ffffff;
}

/* Subscribe Form */
.mil-subscribe-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.mil-subscribe-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}

.mil-subscribe-form input:focus {
    outline: none;
    border-color: #0575bc;
    background: rgba(255, 255, 255, 0.15);
}

.mil-subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mil-subscribe-form button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #ffffff;
}

.mil-subscribe-form button:hover {
    background: #0575bc;
    transform: translateX(5px);
}

/* Social Icons */
.mil-social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.mil-social-icons li a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.mil-social-icons li a:hover {
    background: #0575bc;
    transform: translateY(-3px);
}

/* Vertical Between Layout */
.mil-vert-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* ============================================
   DASHBOARD & TABLE STYLES
   ============================================ */

.mil-table-responsive {
    overflow-x: auto;
    margin-top: 30px;
}

.mil-table {
    width: 100%;
    border-collapse: collapse;
}

.mil-table th {
    text-align: left;
    padding: 15px;
    background: #f5f5f5;
    font-weight: 600;
}

.mil-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

/* Badges */
.mil-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.mil-badge-pending { background: #fff3cd; color: #856404; }
.mil-badge-processing { background: #cce5ff; color: #004085; }
.mil-badge-dispatched { background: #d4edda; color: #155724; }
.mil-badge-delivered { background: #d1e7dd; color: #0f5132; }
.mil-badge-assigned { background: #e2d5f1; color: #4a1b8a; }
.mil-badge-in_transit { background: #fff3cd; color: #856404; }

/* ============================================
   FORM STYLES
   ============================================ */

.mil-form-group {
    margin-bottom: 20px;
}

.mil-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.mil-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.mil-form-control:focus {
    outline: none;
    border-color: #007bff;
}

/* Buttons */
.mil-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mil-btn-primary {
    background: #007bff;
    color: white;
}

.mil-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.mil-btn-secondary {
    background: #6c757d;
    color: white;
}

.mil-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.mil-btn-outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.mil-btn-outline:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Icon Button */
.mil-icon-button-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.mil-icon-button-sm:hover {
    background: #0575bc;
    transform: translateX(5px);
}

/* Arrow Place */
.mil-arrow-place {
    position: relative;
}

.mil-arrow-place::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: currentColor;
    opacity: 0;
    transition: all 0.3s;
}

.mil-arrow-place:hover::after {
    opacity: 1;
    right: -25px;
}

/* ============================================
   TRACKING PAGE
   ============================================ */

.mil-tracking-timeline {
    position: relative;
    padding-left: 30px;
}

.mil-tracking-item {
    position: relative;
    padding-bottom: 30px;
    border-left: 2px solid #eee;
    padding-left: 20px;
}

.mil-tracking-item:last-child {
    border-left-color: transparent;
}

.mil-tracking-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid white;
}

.mil-tracking-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

/* ============================================
   ALERT & FLASH MESSAGES
   ============================================ */

.flash-message,
.mil-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-success,
.mil-alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger,
.mil-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.mil-alert i {
    font-size: 20px;
}

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

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.mil-up {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.mil-up.mil-active {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.mil-light-white {
    color: rgba(255, 255, 255, 0.7);
}

.mil-white-text {
    color: #ffffff;
}

.mil-white-muted {
    color: rgba(255, 255, 255, 0.5);
}

.mil-light-soft {
    color: rgba(255, 255, 255, 0.7);
}

.mil-muted {
    color: rgba(255, 255, 255, 0.5);
}

.mil-logo-white {
    color: #ffffff;
}

.mil-logo-white:hover {
    color: #0575bc;
}

/* Padding & Margin Utilities */
.mil-p-120-60 {
    padding: 120px 0 60px;
}

.mil-mb-60 {
    margin-bottom: 60px;
}

.mil-mb-30 {
    margin-bottom: 30px;
}

.mil-mt-30 {
    margin-top: 30px;
}

.mil-mt-60 {
    margin-top: 60px;
}

.mil-p-40 {
    padding: 40px;
}

/* Text Utilities */
.mil-text-center {
    text-align: center;
}

.mil-accent {
    color: #0575bc;
}

.mil-thin {
    font-weight: 300;
}

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

@media (max-width: 1200px) {
    .mil-main-menu > ul > li > a {
        font-size: 20px;
    }
    
    .mil-menu-content {
        padding: 100px 0 60px;
    }
}

@media (max-width: 768px) {
    .mil-frame-top {
        top: 15px;
        left: 15px;
        right: 15px;
    }
    
    .mil-frame-bottom {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .mil-menu-content {
        padding: 80px 0 40px;
    }
    
    .mil-main-menu > ul > li > a {
        font-size: 20px;
        padding: 10px 0;
        display: block;
    }
    
    .mil-menu-right {
        text-align: center;
        padding: 20px 0;
    }
    
    .mil-menu-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .mil-menu-btn span,
    .mil-menu-btn span::before,
    .mil-menu-btn span::after {
        width: 20px;
    }
    
    .mil-social-icons {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .mil-subscribe-form {
        flex-direction: column;
    }
    
    .mil-subscribe-form button {
        width: 100%;
        border-radius: 50px;
    }
    
    .mil-footer-menu ul,
    .mil-menu-list {
        text-align: center;
    }
    
    .mil-vert-between {
        text-align: center;
        margin-top: 30px;
    }
    
    .mil-table td,
    .mil-table th {
        padding: 10px;
        font-size: 14px;
    }
    
    .mil-no-wrap {
        white-space: normal;
    }
    
    .mil-p-120-60 {
        padding: 80px 0 40px;
    }
    
    /* Make menu items easier to tap on mobile */
    .mil-main-menu > ul > li {
        margin-bottom: 20px;
    }
    
    .mil-menu-list li {
        margin-bottom: 15px;
    }
    
    .mil-menu-list li a {
        font-size: 16px;
        padding: 8px 0;
        display: block;
    }
    
    /* Make dropdown menu easier to tap */
    .mil-has-children > ul {
        padding-left: 15px;
    }
    
    .mil-has-children > ul > li {
        margin-bottom: 12px;
    }
    
    .mil-has-children > ul > li > a {
        font-size: 16px;
        padding: 8px 0;
        display: block;
    }
    
    /* When menu is open, make close button larger */
    .mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn,
    .mil-menu-frame.mil-active .mil-menu-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .mil-frame-top {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .mil-menu-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .mil-menu-btn span,
    .mil-menu-btn span::before,
    .mil-menu-btn span::after {
        width: 18px;
    }
    
    .mil-frame-top .mil-logo img {
        max-height: 30px;
        width: auto;
    }
}

/* ============================================
   ANIMATION FOR CLOSE BUTTON
   ============================================ */

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.mil-menu-frame.mil-active ~ .mil-frame .mil-menu-btn {
    animation: pulse 0.5s ease;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

.mil-menu-frame::-webkit-scrollbar {
    width: 8px;
}

.mil-menu-frame::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.mil-menu-frame::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.mil-menu-frame::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}