:root {
    --bg: #dce5df;
    --surface: #FFFFFF;
    --surface-2: #f4f7f5;
    --ink: #0c4c24;
    --muted: #5e896f;
    --brand: #0c4c24;
    --brand-600: #5e896f;
    --accent: #84a494;
    --accent-2: #84a48c;
    --line: rgba(12, 76, 36, .12);
    --radius: 14px;
    --shadow: 0 8px 24px rgba(12, 76, 36, .10);
    --shadow-lg: 0 12px 40px rgba(12, 76, 36, .12), 0 4px 12px rgba(0, 0, 0, .06);
    --danger: #d32f2f;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--ink);
    background:
        radial-gradient(600px 400px at 10% -10%, rgba(132, 164, 148, .20), transparent 60%),
        radial-gradient(700px 500px at 90% -10%, rgba(132, 164, 140, .14), transparent 60%),
        var(--bg);
    min-height: 100vh;
    padding-bottom: 40px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    padding: 20px 28px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(12, 76, 36, 0.05), border 1px solid rgba(12, 76, 36, 0.08);
}

.brand {
    display: flex;
    gap: 20px;
    align-items: center;
}

.brand-text-wrapper {
    padding-right: 20px;
    border-right: 2px solid var(--line);
}

.brand-text-logo-small {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(
        110deg,
        var(--brand) 0%,
        var(--accent) 30%,
        var(--brand) 60%,
        var(--accent) 90%,
        var(--brand) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerTextDark 6s linear infinite;
}

@keyframes shimmerTextDark {
    to {
        background-position: 200% center;
    }
}

.brand div:last-child {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    border-left: 2px solid var(--line);
}

.brand h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.brand p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid rgba(12, 76, 36, 0.15);
    border-radius: 10px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-logout:hover {
    background: var(--surface-2);
    border-color: rgba(12, 76, 36, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-logout:active {
    transform: translateY(0);
}

.btn-logout svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.btn-logout span {
    display: inline-block;
}

@media (max-width: 768px) {
    .btn-logout span {
        display: none;
    }

    .btn-logout {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .brand-text-wrapper {
        display: block;
        border-right: none;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
    background: var(--surface);
    padding: 6px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(12, 76, 36, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(12, 76, 36, 0.1);
}

.nav-tab {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-tab:hover {
    background: var(--surface-2);
    color: var(--ink);
    transform: translateY(-1px);
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(12, 76, 36, 0.25);
    transform: translateY(-1px);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid rgba(12, 76, 36, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(12, 76, 36, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent), transparent);
}

.form-card {
    transition: none;
}

.form-card:hover {
    box-shadow: 0 4px 20px rgba(12, 76, 36, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: none;
}

.card h2 {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.card h3 {
    margin: 24px 0 16px;
    font-size: 16px;
    font-weight: 650;
    color: var(--ink);
    letter-spacing: -0.2px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 14px;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(12, 76, 36, 0.12);
    background: white;
}

/* DateTime Local */
input[type="datetime-local"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 14px;
    transition: all 0.2s ease;
}

input[type="datetime-local"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(132, 164, 148, 0.2);
    background: white;
}

/* Checkboxes */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand);
}

label {
    cursor: pointer;
    user-select: none;
}

/* Service Sections */
.supplier-options {
    margin-top: 24px;
}

.service-section {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 4px 12px 12px 4px;
    padding: 16px 16px 16px 20px;
    margin-bottom: 16px;
    transition: all 0.3s var(--ease-out);
}

.service-section:hover {
    background: white;
    border-left-color: var(--brand);
    box-shadow: 0 6px 20px rgba(12, 76, 36, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.checkbox-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
}

.service-details {
    margin-top: 16px;
    padding-left: 30px;
    display: none;
}

.checkbox-header input:checked~span {
    color: var(--brand);
}

.checkbox-header input:checked+span+.service-details,
.checkbox-header input:checked~.service-details {
    display: block;
}

/* CSS específico para restaurante - garantir que os detalhes apareçam */
#atendimentoRestauranteDetails,
#estruturaRestauranteDetails,
#mesasRestauranteDetails {
    display: none;
}

#atendimentoRestauranteDetails.show,
#estruturaRestauranteDetails.show,
#mesasRestauranteDetails.show {
    display: block;
}

/* Garantir que service-details sejam exibidos quando checkbox estiver marcado */
.service-details {
    display: none !important;
}

.service-details.show {
    display: block !important;
}

/* Forçar exibição quando checkbox estiver marcado */
.checkbox-header input:checked~.service-details {
    display: block !important;
}

/* Sub Options */
.sub-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.sub-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.form-row>div label {
    font-size: 12px;
    margin-bottom: 6px;
}

.form-row input {
    font-size: 14px;
    padding: 10px 14px;
}

/* Dynamic Items */
.ab-items,
.sala-items,
.transfer-items,
.passeio-items {
    margin-bottom: 16px;
}

.dynamic-item {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.25s var(--ease-out);
    box-shadow: 0 2px 6px rgba(12, 76, 36, .04);
}

.dynamic-item:hover {
    box-shadow: 0 4px 14px rgba(12, 76, 36, .08);
}

.dynamic-item .remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-out);
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.25);
}

.dynamic-item .remove-btn:hover {
    transform: scale(1.1);
}

/* Buttons */
button {
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 76, 36, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(12, 76, 36, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand) 100%);
    box-shadow: 0 6px 20px rgba(12, 76, 36, 0.30), 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent) 0%, rgba(132, 164, 148, 0.8) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(132, 164, 148, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(132, 164, 148, 0.9) 0%, var(--accent) 100%);
    box-shadow: 0 4px 16px rgba(132, 164, 148, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-add {
    background: transparent;
    border: 2px dashed var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    font-size: 13px;
}

.btn-add:hover {
    background: var(--surface-2);
}

/* Form Actions */
.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Result Box */
.result-box {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.result-box h3 {
    margin: 0 0 12px;
    color: #2e7d32;
}

.link-box {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.link-box input {
    flex: 1;
    background: white;
}

.link-box button {
    padding: 12px 20px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--accent);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    background: var(--surface-2);
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.upload-area:hover {
    border-color: var(--brand);
    background: white;
}

.upload-area p {
    margin: 0 0 16px;
    color: var(--muted);
}

/* Files List */
.files-list {
    margin: 24px 0;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-item .file-name {
    font-size: 14px;
    color: var(--ink);
}

.file-item .file-info {
    font-size: 12px;
    color: var(--muted);
}

.file-item .remove-file {
    background: transparent;
    border: none;
    color: var(--danger);
    padding: 6px 12px;
    font-size: 12px;
}

/* Quotations List */
.quotation-item {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quotation-info h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--ink);
}

.quotation-info p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.quotation-actions {
    display: flex;
    gap: 8px;
}

.quotation-actions button {
    padding: 8px 16px;
    font-size: 13px;
}

/* Project Cards - Modern Design */
.project-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(12, 76, 36, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(132, 164, 148, 0.2);
}

.project-header {
    padding: 24px;
    border-bottom: 1px solid rgba(132, 164, 148, 0.15);
    background: linear-gradient(135deg, rgba(132, 164, 148, 0.03) 0%, rgba(201, 215, 206, 0.05) 100%);
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.project-title-section {
    flex: 1;
    min-width: 0;
}

.project-title {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.project-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-actions-header {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px 24px;
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.project-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-info-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
}

.project-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-body {
    padding: 24px;
}

.cotacoes-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cotacoes-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.cotacoes-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
}

.cotacoes-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.upload-form-container {
    background: rgba(132, 164, 148, 0.06);
    border: 2px dashed rgba(132, 164, 148, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.upload-form-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cotacao-tipo-selector {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: white;
    border: 1px solid rgba(132, 164, 148, 0.2);
    border-radius: 10px;
    flex-wrap: wrap;
}

.cotacao-tipo-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(132, 164, 148, 0.05);
}

.cotacao-tipo-label:hover {
    background: rgba(132, 164, 148, 0.15);
}

.cotacao-tipo-label input[type="checkbox"]:checked+span {
    font-weight: 600;
    color: var(--brand);
}

.upload-form-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 12px;
    align-items: end;
}

.cotacoes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cotacao-card {
    background: white;
    border: 2px solid rgba(132, 164, 148, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 16px;
}

.cotacao-card:hover {
    background: rgba(132, 164, 148, 0.03);
    border-color: rgba(12, 76, 36, 0.5);
    box-shadow: 0 4px 16px rgba(12, 76, 36, 0.12);
    transform: translateY(-2px);
}

.cotacao-card.selected {
    border-color: rgba(12, 76, 36, 0.6);
    box-shadow: 0 6px 20px rgba(12, 76, 36, 0.18);
    background: rgba(12, 76, 36, 0.03);
}


.cotacao-info-section {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.cotacao-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    width: 48px;
    height: 48px;
    background: rgba(132, 164, 148, 0.08);
    border: 1px solid rgba(132, 164, 148, 0.15);
    border-radius: 10px;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(12, 76, 36, 0.08);
    flex-shrink: 0;
}

.cotacao-details {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.cotacao-name {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.cotacao-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
}

.cotacao-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cotacao-value-badge {
    padding: 10px 16px;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 10px;
    width: fit-content;
}

.cotacao-value-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(5, 150, 105, 0.7);
    margin-bottom: 2px;
}

.cotacao-value-amount {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
}

.total-projeto-hint {
    font-size: 12px;
    color: var(--muted);
    background: rgba(132, 164, 148, 0.12);
    padding: 8px 10px;
    border-radius: 10px;
    line-height: 1.4;
}

.currency-placeholder {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 12px 0;
}

.cotacao-actions-section {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-icon-only {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.btn-icon-only:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 76, 36, 0.12);
}

.btn-icon-only.delete-btn {
    background: rgba(211, 47, 47, 0.1);
    border-color: rgba(211, 47, 47, 0.2);
    color: var(--danger);
}

/* Currency Conversion Section */
.currency-conversion-section {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.currency-conversion-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 18px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(132, 164, 148, 0.12), rgba(132, 164, 148, 0.06));
    border-left: 4px solid rgba(132, 164, 148, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.currency-conversion-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.currency-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 10px;
    align-items: center;
}

.currency-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: linear-gradient(135deg, rgba(132, 164, 148, 0.2), rgba(132, 164, 148, 0.1));
    border: 1.5px solid rgba(132, 164, 148, 0.3);
    border-radius: 10px;
    height: 38px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.currency-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(132, 164, 148, 0.25);
    border-radius: 10px;
    background: white !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: all 0.2s ease;
    height: 38px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.currency-input:focus {
    outline: none;
    border-color: rgba(132, 164, 148, 0.5);
    box-shadow: 0 0 0 3px rgba(132, 164, 148, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
    background: white !important;
}

.currency-input:active {
    background: white !important;
}

.currency-input::placeholder {
    color: var(--muted);
    font-size: 13px;
    opacity: 0.7;
}

.currency-display {
    padding: 10px 14px;
    border: 2px solid rgba(5, 150, 105, 0.2);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(5, 150, 105, 0.03));
    font-size: 14px;
    text-align: right;
    color: #059669;
    font-weight: 700;
    min-width: 100px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.currency-converted-value {
    padding: 10px 14px;
    border: 2px solid rgba(30, 64, 175, 0.25);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(30, 64, 175, 0.03));
    font-size: 14px;
    text-align: right;
    color: #1e40af;
    font-weight: 700;
    min-width: 120px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-remove-conversions {
    padding: 10px 16px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    margin-top: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-remove-conversions:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.btn-remove-conversions:active {
    transform: translateY(0);
}

.btn-icon-only.delete-btn:hover {
    background: var(--danger);
    color: white;
}

.btn-excluir-cotacao {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.2);
    color: #d32f2f;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-excluir-cotacao:hover {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .sub-options {
        flex-direction: column;
    }

    .quotation-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .quotation-actions {
        margin-top: 12px;
        width: 100%;
    }

    .quotation-actions button {
        flex: 1;
    }

    /* Project Cards Responsive */
    .project-title-row {
        flex-direction: column;
        gap: 16px;
    }

    .project-actions-header {
        width: 100%;
        justify-content: stretch;
    }

    .project-actions-header button {
        flex: 1;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
    }

    .cotacoes-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cotacoes-actions {
        width: 100%;
    }

    .cotacoes-actions button {
        flex: 1;
    }

    .upload-form-inputs {
        grid-template-columns: 1fr;
    }

    .cotacao-card {
        flex-direction: column;
        gap: 12px;
    }

    .cotacao-info-section {
        width: 100%;
    }

    .cotacao-value-badge {
        margin: 0;
        text-align: center;
    }

    .cotacao-actions-section {
        width: 100%;
        justify-content: center;
    }

    .search-filter-bar {
        flex-direction: column;
    }

    .filter-date-inputs {
        flex-direction: column;
    }

    .filter-value-row {
        flex-direction: column;
        gap: 12px;
    }

    .filter-value-label {
        min-width: 100%;
    }
}

/* Total do Projeto Badge */
.total-projeto-badge {
    padding: 12px 16px;
    text-align: right;
    min-width: 160px;
}

.total-projeto-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.total-projeto-valor {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    letter-spacing: -0.3px;
}

/* Loader */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--surface-2);
    border-radius: 50%;
    border-top-color: var(--brand);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility classes */
.mt {
    margin-top: 24px;
}

.mt-sm {
    margin-top: 16px;
}

/* Pending notification badge */
.pending-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff9800;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Drag and Drop Upload Area Enhancement */
.upload-area.drag-over {
    border-color: var(--brand);
    background: rgba(132, 164, 148, 0.1);
    transform: scale(1.02);
}

/* Quick Actions */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

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

.btn-icon {
    padding: 8px 12px;
}

/* Search and Filter Bar */
.search-filter-bar {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper input {
    padding-left: 44px;
    margin-bottom: 0;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 18px;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-toggle-btn:hover {
    background: var(--brand-600);
    transform: translateY(-1px);
}

.filter-toggle-btn .toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.filter-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.filter-group-collapsible {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-date-inputs {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.filter-date-inputs>div {
    flex: 1;
}

/* Filtros de Valor */
.filter-value-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-value-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--surface-2);
    border-radius: 10px;
}

.filter-value-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    font-weight: 500;
    font-size: 14px;
    color: var(--ink);
}

.service-icon {
    font-size: 20px;
}

.filter-value-inputs {
    display: flex;
    gap: 12px;
    flex: 1;
}

.filter-value-inputs>div {
    flex: 1;
}

.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group select {
    flex: 1;
    min-width: 200px;
}

/* Auto-save indicator */
.autosave-indicator {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 12px 20px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.autosave-indicator.show {
    opacity: 1;
}

.autosave-indicator .save-icon {
    color: #4caf50;
    font-size: 16px;
}

/* Estilos para formulário de restaurante */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid rgba(132, 164, 148, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    background: white;
}

.checkbox-item:hover {
    background: rgba(12, 76, 36, 0.03);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(12, 76, 36, .08);
}

.checkbox-item:has(input:checked) {
    background: rgba(12, 76, 36, 0.06);
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
}

.conditional-field {
    display: none;
    margin-top: 12px;
}

.conditional-field.show {
    display: block;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid rgba(132, 164, 148, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    background: white;
}

.radio-item:hover {
    background: rgba(12, 76, 36, 0.03);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(12, 76, 36, .08);
}

.radio-item:has(input:checked) {
    background: rgba(12, 76, 36, 0.06);
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.radio-item input[type="radio"] {
    margin: 0;
}

/* Estilos para campos obrigatórios */
.req {
    color: var(--brand);
    font-weight: 600;
}

.req::after {
    content: " *";
    color: var(--danger);
}

/* Sistema de Notificações Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    border-left: 4px solid var(--accent);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.fade-out {
    opacity: 0;
    transform: translateX(100px);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    color: var(--ink);
}

.toast-message {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--ink);
}

/* Tipos de toast */
.toast.success {
    border-left-color: #10b981;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

/* Responsivo */
@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Modal de Edição */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-2);
}

.modal-header h2 {
    color: var(--ink);
    font-size: 1.5em;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: var(--muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--ink);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--surface-2);
}

/* Responsive para formulário de restaurante */
@media (max-width: 768px) {
    .checkbox-group {
        flex-direction: column;
    }

    .radio-group {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}

/* SweetAlert sobre modal de projetos inativos */
.swal2-container-over-modal,
.swal2-container {
    z-index: 10000 !important;
}

.swal2-container-over-modal .swal2-popup {
    z-index: 10001 !important;
}

/* Rodapé */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    margin: 0;
    text-align: center;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.main-footer.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.footer-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .main-footer {
        position: fixed;
        /* Mantém fixo mesmo no mobile */
        padding: 6px 16px;
    }

    body {
        padding-bottom: 50px;
        /* Mantém espaço para o rodapé */
    }

    .footer-text {
        font-size: 0.75rem;
    }
}