/* Tablets */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Tablets pequenos e mobile landscape */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-color);
        display: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    nav.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
    }
    
    nav ul li a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .header-content {
        position: relative;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-with-image {
        flex-direction: column;
        text-align: center;
    }
    
    .content-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .content-text {
        text-align: justify;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .popup {
        width: 95%;
        margin: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .popup-body {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        gap: 0.75rem;
    }
    
    .content-image {
        height: 250px;
    }
    
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}

/* Telas muito pequenas */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .popup-body {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
}

/* Impressão */
@media print {
    .nav-toggle,
    nav,
    .popup-overlay,
    .notification {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn {
        display: none;
    }
    
    footer {
        background: white;
        color: black;
    }
    
    footer a {
        color: #0066cc;
    }
}