/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #fbbf24;
    /* Gold */
    --primary-hover: #d97706;
    --secondary-color: #10b981;
    /* Green */
    --danger-color: #ef4444;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}


nav a {
    margin-right: 15px;
}

/* Header */
header {
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--glass-border);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    transition: 0.3s;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select option {
    background-color: #1e293b;
    color: #f8fafc;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
    background-color: #2d3748;
}

/* Admin Specific */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-right: var(--glass-border);
}

.admin-content {
    flex: 1;
    padding: 30px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: var(--glass-border);
}

th {
    color: var(--text-muted);
    font-weight: 600;
}

/* Badge */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: var(--glass-border);
}

/* Responsive Utilities */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* Permite quebre linha se necessário */
    gap: 10px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
        overflow-x: hidden;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .logo {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    nav {
        margin-bottom: 5px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin-right: 0 !important;
        /* Remove inline style margin */
        padding: 5px 10px;
    }

    h1 {
        font-size: 2rem !important;
        /* Ajuste para títulos grandes */
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-row span:last-child {
        align-self: flex-end;
        /* Preço alinhado à direita mesmo em coluna */
        font-size: 2.2rem !important;
    }

    /* Melhorias específicas para página de detalhes */
    .card {
        padding: 15px;
    }

    /* Ajustar altura da imagem no mobile */
    .grid-2-cols>div>div[style*="height: 300px"] {
        height: 250px !important;
    }

    /* Badges menores no mobile */
    .badge {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    /* Botão mais compacto */
    .btn {
        padding: 10px 20px;
        font-size: 1rem !important;
    }
}