/* Mobile Responsive Styles */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.mobile-menu-toggle.active {
    background: #dc3545;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        z-index: 1000;
        transition: left 0.3s ease;
        width: 250px;
        height: 100vh;
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 20px 15px !important;
        padding-top: 70px !important;
    }
    
    /* Responsive Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 8px 4px !important;
        white-space: nowrap;
    }
    
    /* Responsive Cards */
    .stat-card {
        padding: 15px !important;
        margin-bottom: 15px;
    }
    
    .stat-icon {
        font-size: 2rem !important;
    }
    
    .card-modern,
    .smtp-card,
    .category-stock-card,
    .table-card {
        padding: 15px !important;
        margin-bottom: 15px;
    }
    
    /* Responsive Buttons */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-group .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Stack buttons vertically on mobile */
    .btn-action-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-action-group .btn {
        width: 100%;
    }
    
    /* Responsive Forms */
    .form-row,
    .row {
        margin-left: -7.5px;
        margin-right: -7.5px;
    }
    
    .form-row > [class*="col-"],
    .row > [class*="col-"] {
        padding-left: 7.5px;
        padding-right: 7.5px;
        margin-bottom: 15px;
    }
    
    /* Recipient Box */
    .recipient-box {
        padding: 15px !important;
    }
    
    .recipient-box .col-md-10,
    .recipient-box .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Filters */
    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group .form-select,
    .filter-group .btn {
        width: 100%;
    }
    
    /* SMTP Card Actions */
    .smtp-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }
    
    .smtp-actions .btn {
        width: 100%;
    }
    
    /* Text Sizes */
    h2 {
        font-size: 1.5rem !important;
    }
    
    h4 {
        font-size: 1.2rem !important;
    }
    
    h6 {
        font-size: 1rem !important;
    }
    
    /* Badges */
    .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    /* Login Page */
    .login-card {
        margin: 20px;
        padding: 25px !important;
    }
    
    /* Sidebar Title */
    .sidebar h4 {
        font-size: 1.1rem;
        margin-bottom: 15px !important;
    }
    
    /* Nav Links */
    .sidebar .nav-link {
        padding: 10px 12px !important;
        font-size: 0.9rem;
    }
    
    /* Summary Cards (AWS SES, etc.) */
    .summary-card {
        margin-bottom: 15px;
        padding: 15px !important;
    }
    
    /* Action Buttons in Cards */
    .card-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .card-actions .btn {
        width: 100%;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        padding: 25px 20px !important;
    }
    
    .stat-card {
        padding: 20px !important;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    .btn-action-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .btn-action-group .btn {
        flex: 1 1 auto;
        min-width: 120px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px !important;
        padding-top: 70px !important;
    }
    
    .mobile-menu-toggle {
        top: 10px;
        left: 10px;
        padding: 10px 12px;
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 12px !important;
    }
    
    .stat-icon {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    .card-modern,
    .smtp-card {
        padding: 12px !important;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

