/* Responsividade Geral */
@media (max-width: 1200px) {
    .container, .header-container, .footer-container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 992px) {
    /* Ajustes para tablets */
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .steps-container {
        flex-wrap: wrap;
    }
    
    .step {
        flex: 0 0 calc(50% - var(--space-md));
    }
    
    /* Menu principal */
    .nav-menu {
        width: 80%;
    }
}

@media (max-width: 768px) {
    /* Ajustes para dispositivos móveis grandes */
    :root {
        --font-size-base: 15px;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.2rem;
    }
    
    .step {
        flex: 0 0 100%;
    }
    
    /* Menu principal */
    .nav-menu {
        width: 85%;
    }
    
    /* Formulários */
    .form-row {
        flex-direction: column;
    }
    
    /* Cards de passeio */
    .passeio-card {
        flex: 0 0 calc(50% - var(--space-md));
    }
}

@media (max-width: 576px) {
    /* Ajustes para dispositivos móveis pequenos */
    :root {
        --font-size-base: 14px;
        --space-xl: 1.5rem;
    }
    
    .header {
        padding: var(--space-xs) 0;
    }
    
    .logo img {
        height: 32px;
    }
    
    .hero-section {
        min-height: 400px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    /* Menu principal */
    .nav-menu {
        width: 90%;
    }
    
    .menu-container {
        padding: var(--space-lg);
    }
    
    /* Cards de passeio */
    .passeio-card {
        flex: 0 0 100%;
    }
    
    /* Rodapé */
    .footer-container {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .footer-links, .footer-social {
        justify-content: center;
    }
}

/* Orientação paisagem em dispositivos móveis */
@media (max-height: 576px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        padding-bottom: var(--space-md);
    }
}

/* Ajustes específicos para iPhone 5/SE */
@media (max-width: 320px) {
    :root {
        --font-size-base: 13px;
    }
    
    .btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 1rem;
    }
}
/* Estilos gerais para responsividade */
@media (max-width: 1200px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .admin-chart-row {
        flex-direction: column;
    }
    
    .admin-chart-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .admin-table-row {
        flex-direction: column;
    }
    
    .admin-table-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .table-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-actions select {
        margin-top: 10px;
        margin-left: 0;
    }
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
        height: 100vh;
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.collapsed {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        width: 100%;
    }
    
    .admin-header-content {
        padding: 10px 0;
    }
    
    .admin-nav {
        margin-left: auto;
    }
    
    .admin-profile span {
        display: none;
    }
    
    .admin-actions-bar {
        flex-wrap: wrap;
    }
    
    .filter-group {
        margin-bottom: 10px;
        width: 48%;
    }
    
    .settings-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
        margin-right: auto;
    }
    
    .menu-toggle {
        order: 0;
        margin-right: 15px;
    }
    
    .admin-nav {
        order: 2;
        width: 100%;
        margin-top: 15px;
    }
    
    .admin-search {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .admin-notifications, .admin-profile {
        margin-left: 10px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-header h3 {
        margin-bottom: 10px;
    }
    
    .table-actions {
        width: 100%;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-controls button {
        margin: 5px;
    }
    
    /* Ajustes para gráficos */
    .chart-container {
        position: relative;
        height: 300px;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-actions {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .kpi-card {
        flex-direction: column;
        text-align: center;
    }
    
    .kpi-icon {
        margin-top: 15px;
        margin-left: 0;
    }
    
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-breadcrumb {
        margin-top: 10px;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .form-actions button:last-child {
        margin-bottom: 0;
    }
    
    .file-upload {
        flex-direction: column;
    }
    
    .upload-preview {
        margin-bottom: 15px;
    }
    
    /* Ajustes para tabelas em telas muito pequenas */
    .admin-table td, .admin-table th {
        padding: 8px 5px;
    }
    
    .btn-icon {
        margin: 0 2px;
        padding: 5px;
    }
    
    .table-pagination {
        flex-direction: column;
        align-items: center;
    }
    
    .table-pagination > span {
        margin-bottom: 10px;
    }
}

/* Estilos específicos para gráficos responsivos */
@media (max-width: 400px) {
    .chart-container {
        height: 250px;
    }
    
    .chart-actions .btn {
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* Ajustes para orientação paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .admin-sidebar {
        overflow-y: auto;
    }
    
    .admin-main {
        padding: 15px;
    }
    
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-container {
        height: 200px;
    }
}