* {
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #0b0e11 0%, #1a1d23 100%);
    color: #e2e8f0;
    min-height: 100vh;
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(240, 185, 11, 0.25);
    }
    50% {
        box-shadow: 0 8px 24px rgba(240, 185, 11, 0.35);
    }
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e2329 0%, #2a2f35 100%);
    height: 100vh;
    padding: 24px;
    border-right: 1px solid #374151;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: none;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f0b90b, #fbbf24, #f59e0b);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #f0b90b;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(240, 185, 11, 0.3);
    letter-spacing: 1px;
}

.menu-item {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.1), transparent);
    transition: left 0.5s;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item.active,
.menu-item:hover {
    background: linear-gradient(135deg, #f0b90b 0%, #fbbf24 100%);
    color: #1f2937;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.main {
    flex: 1;
    background: linear-gradient(135deg, #0b0e11 0%, #1a1d23 100%);
}

.app-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    position: relative;
    background: rgba(15, 19, 24, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px;
    text-align: center;
    font-weight: 700;
    border-bottom: 1px solid #374151;
    color: #f0b90b;
    font-size: 22px;
    letter-spacing: 1px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    flex-shrink: 0;
    animation: fadeInUp 0.6s ease both;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #374151;
    background: rgba(30, 35, 41, 0.5);
    backdrop-filter: blur(10px);
    margin: 0 20px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    font-size: 15px;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0b90b, #fbbf24);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.tab:hover::after {
    width: 80%;
}

.tab.active {
    color: #f0b90b;
    background: rgba(240, 185, 11, 0.1);
}

.tab.active::after {
    width: 100%;
}

.container {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .container {
        padding: 17px;
    }

    .card {
        padding: 15px;
    }

    .field input {
        padding: 13px 11px 11px;
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.card {
    background: rgba(30, 35, 41, 0.8);
    backdrop-filter: blur(20px);
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: cardReveal 0.6s ease both;
}

.card:nth-child(1) { animation-delay: 0.08s; }
.card:nth-child(2) { animation-delay: 0.14s; }
.card:nth-child(3) { animation-delay: 0.20s; }
.card:nth-child(4) { animation-delay: 0.26s; }
.card:nth-child(5) { animation-delay: 0.32s; }

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f0b90b, #fbbf24, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(240, 185, 11, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.city-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.city-title {
    color: #f0b90b;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(240, 185, 11, 0.3);
}

.card button {
    padding: 10px 16px;
    font-size: 13px;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #e5e7eb;
    border: 1px solid #6b7280;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    align-self: flex-end;
}

.card button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.2), transparent);
    transition: left 0.5s;
}

.card button:hover::before {
    left: 100%;
}

.card button:hover {
    background: linear-gradient(135deg, #f0b90b 0%, #fbbf24 100%);
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.4);
    border-color: #f0b90b;
}

.card button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.field {
    position: relative;
}

.field input {
    width: 100%;
    padding: 12px 10px 10px;
    background: rgba(15, 19, 24, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid #374151;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.field input::placeholder {
    color: #6b7280;
}

.field label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: transparent;
}

.field input:focus {
    border-color: #f0b90b;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.1);
    background: rgba(15, 19, 24, 0.8);
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #f0b90b;
    background: rgba(30, 35, 41, 0.9);
    padding: 2px 8px;
    border-radius: 6px;
}

/* ===================== */

/* ACTION BAR (FIXED)    */

/* ===================== */

.action-bar {
    position: sticky;
    bottom: 0;
    background: rgba(15, 19, 24, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid #374151;
    padding: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    flex-shrink: 0;
}

.action-bar-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.action-bar-inner button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f0b90b 0%, #fbbf24 100%);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(240, 185, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.action-bar-inner button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.action-bar-inner button:hover::before {
    left: 100%;
}

.action-bar-inner button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 185, 11, 0.4);
    animation: pulseGlow 1.8s ease-in-out infinite;
}

.action-bar-inner button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(240, 185, 11, 0.2);
}

.status {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 500;
    text-align: center;
}

.success {
    color: #10b981;
}

.error {
    color: #ef4444;
}

.hidden {
    display: none;
}

/* DESKTOP */

@media (min-width: 1024px) {

    .sidebar {
        display: block;
    }

    .main {
        padding: 30px;
    }

    .app-wrapper {
        width: 85%;
        margin: 0 auto;
        background: rgba(30, 35, 41, 0.4);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(55, 65, 81, 0.3);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        min-height: auto;
    }

    .container {
        padding: 18px;
    }

    .grid {
        gap: 14px;
    }

    .card {
        padding: 16px;
    }

    .field input {
        padding: 13px 11px 11px;
        font-size: 14px;
    }

    .card button {
        padding: 11px 16px;
        font-size: 13px;
    }

    .action-bar {
        position: sticky;
        bottom: 0;
        border-top: 1px solid #374151;
    }
}

/* EXTRA LARGE */

@media (min-width: 1440px) {

    .app-wrapper {
        width: 80%;
    }

    .container {
        padding: 20px;
    }

    .grid {
        gap: 16px;
    }

    .card {
        padding: 18px;
    }

    .field input {
        padding: 14px 12px 12px;
        font-size: 15px;
    }

    .tab {
        padding: 14px;
        font-size: 16px;
    }

    .header {
        padding: 18px;
        font-size: 24px;
    }

    .card button {
        padding: 12px 18px;
        font-size: 14px;
    }

    .action-bar-inner button {
        padding: 16px;
        font-size: 16px;
    }
}