/* Mobile Dashboard Optimizations */

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .row {
        margin: 0 -5px;
    }
    
    .col, .col-md-6, .col-lg-4, .col-xl-3 {
        padding: 0 5px;
        margin-bottom: 15px;
    }
    
    /* Dashboard cards mobile optimization */
    .card {
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(135deg, #1a1d23 0%, #242830 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        margin-bottom: 15px;
    }
    
    .card-header {
        background: rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px 15px;
        font-weight: 600;
        font-size: 14px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Statistics cards mobile layout */
    .stats-card {
        text-align: center;
        padding: 20px 15px;
        background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
        border-radius: 12px;
        color: white;
        margin-bottom: 15px;
    }
    
    .stats-card h3 {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .stats-card p {
        font-size: 0.9rem;
        opacity: 0.9;
        margin-bottom: 0;
    }
    
    /* Map container mobile optimization */
    #map {
        height: 300px !important;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    /* Table responsive on mobile */
    .table-responsive {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .table {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .table th {
        padding: 10px 8px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .table td {
        padding: 12px 8px;
        vertical-align: middle;
    }
    
    /* Mission list mobile optimization */
    .mission-item {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 10px;
        border-left: 4px solid #4A90E2;
    }
    
    .mission-title {
        font-weight: 600;
        font-size: 1rem;
        color: #4A90E2;
        margin-bottom: 8px;
    }
    
    .mission-location {
        font-size: 0.85rem;
        color: #adb5bd;
        margin-bottom: 5px;
    }
    
    .mission-budget {
        font-size: 0.9rem;
        font-weight: 600;
        color: #28a745;
    }
    
    /* Quick action buttons mobile */
    .quick-actions {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }
    
    .quick-action-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #4A90E2, #357ABD);
        border: none;
        color: white;
        font-size: 1.5rem;
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
        margin-bottom: 10px;
        display: block;
        transition: all 0.3s ease;
    }
    
    .quick-action-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
    }
    
    /* Touch-friendly interactive elements */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 8px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #4A90E2, #357ABD);
        border: none;
    }
    
    .btn-outline-primary {
        border: 2px solid #4A90E2;
        color: #4A90E2;
        background: transparent;
    }
    
    .btn-outline-primary:hover {
        background: #4A90E2;
        color: white;
    }
    
    /* Form inputs mobile optimization */
    .form-control {
        min-height: 44px;
        padding: 12px 15px;
        font-size: 1rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.05);
        color: white;
    }
    
    .form-control:focus {
        border-color: #4A90E2;
        box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Navigation improvements */
    .arkham-nav-container {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .arkham-nav-container.active {
        transform: translateX(0);
    }
    
    .arkham-nav-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.8);
        border: none;
        color: white;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        font-size: 1.2rem;
    }
    
    /* Modal mobile optimization */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .modal-content {
        border-radius: 12px;
        border: none;
        background: #1a1d23;
    }
    
    .modal-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .container-fluid {
        padding: 0 20px;
    }
    
    #map {
        height: 400px !important;
    }
    
    .stats-card h3 {
        font-size: 2.5rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    #map {
        height: 250px !important;
    }
    
    .quick-actions {
        bottom: 10px;
        right: 10px;
    }
    
    .quick-action-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* Large screens - maintain existing layout */
@media (min-width: 1200px) {
    .container-fluid {
        padding: 0 30px;
    }
    
    #map {
        height: 500px !important;
    }
}