/* ============================================
   COMBUSTÍVEL MZ - CSS Principal
   Tema: Moderno, Limpo e Responsivo
   ============================================ */

/* ========== 1. VARIÁVEIS E RESET ========== */
:root{
    /* CORES PRINCIPAIS */

    --red-primary: #E30613;
    --red-dark: #B8000D;
    --red-light: #FF4D57;

    --yellow-primary: #F7B500;
    --yellow-dark: #D99100;
    --yellow-light: #FFD84D;

    --green-primary: #2FAE3D;
    --green-dark: #1F7A2A;
    --green-light: #66D36E;

    --white: #FFFFFF;
    --black: #000000;

    /* FUNDOS */

    --bg-dark: #0B0B0B;
    --bg-light: #F8F9FA;

    /* TEXTO */

    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --text-muted: #777777;

    /* BORDAS */

    --border-color: #E5E5E5;

    /* GRADIENTES */

    --gradient-fire: linear-gradient(
        135deg,
        #E30613 0%,
        #F7B500 50%,
        #2FAE3D 100%
    );

    --gradient-red-yellow: linear-gradient(
        90deg,
        #E30613 0%,
        #F7B500 100%
    );

    --gradient-yellow-green: linear-gradient(
        90deg,
        #F7B500 0%,
        #2FAE3D 100%
    );

    /* SOMBRAS */

    --shadow-sm: 0 2px 6px rgba(0,0,0,.08);

    --shadow-md: 0 4px 12px rgba(227,6,19,.15);

    --shadow-lg: 0 8px 24px rgba(247,181,0,.25);

    /* RAIOS DE BRILHO */

    --glow-red: 0 0 20px rgba(227,6,19,.6);

    --glow-yellow: 0 0 25px rgba(247,181,0,.7);

    --glow-green: 0 0 20px rgba(47,174,61,.6);

    /* BORDAS */

    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Reset CSS */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 2. TIPOGRAFIA ========== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-sm); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-light);
}

/* ========== 3. LAYOUT E CONTAINER ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    flex: 1;
    padding: 0 10px;
}

.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ========== 4. NAVEGAÇÃO ========== */
.main-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand h1 {
    font-size: var(--font-size-xl);
    color: var(--white);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-brand .logo-icon {
    font-size: 2rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.nav-menu > li > a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu > li > a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    display: block;
    border-radius: 3px;
    transition: all var(--transition-normal);
}

/* Dropdown Menu */
.user-menu {
    position: relative;
}

.user-menu > a {
    cursor: pointer;
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid var(--gray-200);
}

.user-menu:hover .dropdown {
    display: block;
    animation: fadeIn 0.2s ease;
}

.user-menu .dropdown li {
    padding: 0;
}

.user-menu .dropdown a {
    color: var(--gray-700);
    padding: 0.75rem 1.5rem;
    display: block;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.user-menu .dropdown a:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.user-menu .dropdown .dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
}

/* ========== 5. HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--white);
}

.hero p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 6. CARDS ========== */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.card-header {
    padding: 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

/* Stations Grid */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.station-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.station-header {
    padding: 1.25rem;
    color: var(--white);
    font-weight: 600;
    font-size: var(--font-size-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.station-header.available {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
}

.station-header.unavailable {
    background: linear-gradient(135deg, var(--danger-color), var(--danger-light));
}

.station-header.refueling {
    background: linear-gradient(135deg, var(--warning-color), var(--warning-light));
}

.station-body {
    padding: 1.5rem;
}

.station-info {
    margin-bottom: 1rem;
}

.station-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.station-info strong {
    color: var(--gray-700);
    min-width: 80px;
}

/* Fuel List */
.fuel-list {
    background: var(--gray-100);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.fuel-list h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: var(--font-size-md);
}

.fuel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.fuel-item:hover {
    background: var(--gray-200);
}

.fuel-item:last-child {
    margin-bottom: 0;
}

.fuel-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
    border: 2px solid rgba(0,0,0,0.1);
}

.fuel-status.available {
    background: var(--success-color);
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.3);
}

.fuel-status.unavailable {
    background: var(--danger-color);
    box-shadow: 0 0 10px rgba(198, 40, 40, 0.3);
}

.fuel-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Percentage Bar */
.percentage-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 4px;
    transition: width 1s ease;
}

.percentage-text {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    text-align: right;
    margin-top: 0.25rem;
}

/* ========== 7. BOTÕES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    line-height: 1.5;
    user-select: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: #01579b;
    border-color: #01579b;
    color: var(--white);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
    border-color: var(--success-color);
}

.btn-success:hover {
    background: #1b5e20;
    border-color: #1b5e20;
    color: var(--white);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background: #b71c1c;
    border-color: #b71c1c;
    color: var(--white);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--white);
    border-color: var(--warning-color);
}

.btn-warning:hover {
    background: #e65100;
    border-color: #e65100;
    color: var(--white);
}

.btn-info {
    background: var(--info-color);
    color: var(--white);
    border-color: var(--info-color);
}

.btn-info:hover {
    background: #0d47a1;
    border-color: #0d47a1;
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline-success {
    background: transparent;
    color: var(--success-color);
    border-color: var(--success-color);
}

.btn-outline-success:hover {
    background: var(--success-color);
    color: var(--white);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: var(--white);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== 8. FORMULÁRIOS ========== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-container-wide {
    max-width: 800px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

.form-group label .required {
    color: var(--danger-color);
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger-color);
}

.form-group .error-message {
    color: var(--danger-color);
    font-size: var(--font-size-xs);
    margin-top: 0.25rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin: -3rem auto 2rem;
    position: relative;
    z-index: 10;
    max-width: 900px;
    border: 1px solid var(--gray-200);
}

.search-box h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.search-form select,
.search-form input {
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    width: 100%;
    transition: all var(--transition-fast);
}

.search-form select:focus,
.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.search-form button {
    padding: 0.75rem 1.5rem;
    height: 100%;
}

/* ========== 9. TABELAS ========== */
.data-table {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: var(--font-size-sm);
}

.data-table tbody tr:hover {
    background: var(--gray-100);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========== 10. ALERTS E MENSAGENS ========== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert .alert-icon {
    font-size: var(--font-size-xl);
}

/* ========== 11. BADGES E TAGS ========== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-color);
    color: var(--white);
}

.badge-success {
    background: var(--success-color);
    color: var(--white);
}

.badge-danger {
    background: var(--danger-color);
    color: var(--white);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--white);
}

.badge-info {
    background: var(--info-color);
    color: var(--white);
}

/* ========== 12. STATS E DASHBOARD ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.stat-card p {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin: 0;
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.success h3 {
    color: var(--success-color);
}

.stat-card.danger {
    border-left-color: var(--danger-color);
}

.stat-card.danger h3 {
    color: var(--danger-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card.warning h3 {
    color: var(--warning-color);
}

/* ========== 13. MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger-color);
}

/* ========== 14. MAPA ========== */
.map-container {
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--gray-200);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== 15. LOADING E SPINNERS ========== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

.loading-large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 16. PAGINAÇÃO ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* ========== 17. FOOTER ========== */
.main-footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

.main-footer p {
    margin: 0;
    font-size: var(--font-size-sm);
}

/* ========== 18. UTILITÁRIOS ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-muted { color: var(--gray-600) !important; }

.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.my-2 { margin: 1rem 0; }
.my-3 { margin: 1.5rem 0; }
.my-4 { margin: 2rem 0; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline-block { display: inline-block; }

.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--border-radius-md); }
.shadow { box-shadow: var(--shadow-md); }

.hidden { visibility: hidden; }
.visible { visibility: visible; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========== 19. ANIMAÇÕES ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease;
}

.animate-slide-down {
    animation: slideDown 0.3s ease;
}

/* ========== 20. RESPONSIVIDADE ========== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-padding: 15px;
    }
    
    .stations-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
    }
    
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        padding: 1rem;
        border-radius: var(--border-radius-md);
        font-size: var(--font-size-md);
    }
    
    .nav-menu > li > a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .user-menu .dropdown {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border-radius: var(--border-radius-md);
        margin-top: 0.5rem;
    }
    
    .user-menu .dropdown a {
        color: var(--white);
    }
    
    .user-menu .dropdown a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--white);
    }
    
    /* Layout */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: var(--font-size-2xl);
    }
    
    .hero p {
        font-size: var(--font-size-md);
    }
    
    .search-box {
        margin: -2rem 10px 1rem;
        padding: 1.5rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .stations-grid {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .data-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table table {
        min-width: 800px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: var(--font-size-xl);
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: 10px;
    }
    
    .nav-brand h1 {
        font-size: var(--font-size-lg);
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: var(--font-size-xl);
    }
    
    .station-header {
        font-size: var(--font-size-md);
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: var(--font-size-xs);
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .stations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Large */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }
    
    .stations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .main-footer,
    .mobile-menu-btn,
    .search-box,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: var(--white);
        color: var(--gray-900);
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .card,
    .station-card,
    .data-table {
        box-shadow: none;
        border: 1px solid var(--gray-300);
        break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode (opcional - pode ser ativado no futuro) */
@media (prefers-color-scheme: dark) {
    /* Descomente para ativar dark mode automático */
    /*
    :root {
        --light-bg: #1a1a2e;
        --white: #16213e;
        --gray-100: #0f3460;
        --gray-200: #1a1a2e;
        --gray-300: #16213e;
        --gray-700: #e94560;
        --gray-800: #ffffff;
        --gray-900: #ffffff;
    }
    
    body {
        color: #ffffff;
    }
    
    .station-card,
    .card,
    .form-container,
    .search-box,
    .data-table {
        background: #16213e;
        color: #ffffff;
    }
    */
}