/* Global Responsive Styles für CloudOne */

/* Sidebar Toggle für Mobile */
.sidebar-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .sidebar-toggle {
        display: block;
    }
}

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem !important;
    }
}

/* Responsive Cards */
@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive Modals */
@media (max-width: 640px) {
    .modal-content {
        width: 95% !important;
        margin: 1rem !important;
    }
}

/* Responsive Buttons */
@media (max-width: 640px) {
    .btn-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .btn-group button,
    .btn-group a {
        width: 100% !important;
    }
}

/* Responsive Text */
@media (max-width: 640px) {
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.125rem !important; }
}

/* Sidebar Responsive */
.sidebar {
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        z-index: 40;
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 30;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}
