/* Main Container */
.calculadora-container {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

/* Breadcrumbs */
.breadcrumb-tool {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 22px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(120deg, #d97706, #f59e0b, #d97706);
    background-size: 200% 200%;
    border-radius: 28px;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.25);
    min-height: 48px;
    gap: 0.2em;
    border: 2px solid #fbbf24;
    animation: breadcrumb-gradient-move 6s ease-in-out infinite;
    flex-wrap: wrap;
}

@keyframes breadcrumb-gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.breadcrumb-tool .breadcrumb-home,
.breadcrumb-tool .breadcrumb-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    transition: background 0.2s;
}

.breadcrumb-tool .breadcrumb-home:hover,
.breadcrumb-tool .breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.breadcrumb-tool .breadcrumb-separator {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-tool .breadcrumb-current {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header */
.calculadora-header {
    text-align: center;
    margin-bottom: 30px;
}

.calculadora-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calculadora-title {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Form */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4b5563;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    outline: none;
}

/* Grids */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Water Type Toggle */
.water-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.water-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    font-size: 1rem;
}

.water-type-btn:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.water-type-btn.active[data-type="freshwater"] {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.water-type-btn.active[data-type="marine"] {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.water-type-icon {
    font-size: 1.6rem;
}

.water-type-label {
    font-weight: 600;
    color: #374151;
}

/* Plant Cards */
.plant-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

/* Tooltip inside cards: show below to avoid clipping */
.plant-card {
    overflow: visible;
}

.plant-card:has(abbr.abbr-tip:hover) {
    z-index: 100;
}

.plant-card abbr.abbr-tip {
    position: relative;
    z-index: 10;
}

.plant-card abbr.abbr-tip::after {
    bottom: auto;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.plant-card abbr.abbr-tip::before {
    bottom: auto;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-top-color: transparent;
    border-bottom-color: #1e293b;
    z-index: 10000;
}

.plant-cards.marine-grid {
    grid-template-columns: repeat(4, 1fr);
}

.plant-card {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.plant-card:hover {
    border-color: #fbbf24;
    background: #fffbeb;
    transform: translateY(-2px);
}

.plant-card.selected {
    border-color: #d97706;
    background: #fff7ed;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.plant-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.plant-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.plant-title {
    font-weight: 700;
    color: #1f2937;
    display: block;
    margin-bottom: 5px;
}

.plant-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Calculation Button */
.btn-calculate {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    margin-top: 10px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
    background: linear-gradient(135deg, #fbbf24, #b45309);
}

/* Result Area */
.result-card {
    background: #111827;
    color: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    display: none;
    animation: slideUp 0.5s ease-out;
    border: 1px solid #374151;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

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

.result-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #374151;
    padding-bottom: 15px;
}

.result-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.result-box {
    background: #1f2937;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #374151;
    transition: all 0.3s;
}

.result-box:hover {
    transform: translateY(-3px);
    border-color: #4b5563;
}

.result-box.highlight {
    background: rgba(245, 158, 11, 0.1);
    border-color: #d97706;
}

.result-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fbbf24;
    margin: 10px 0;
    line-height: 1.1;
}

.result-unit {
    font-size: 0.9rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    background: #ecfdf5;
    border: 1px solid #059669;
    color: #064e3b;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-item span {
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-item.warning {
    background: #fffbeb;
    border-color: #d97706;
    color: #92400e;
}

.info-item.tip {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e3a8a;
}

.photoperiod-visual {
    background: linear-gradient(90deg, #1f2937 0%, #fbbf24 30%, #fbbf24 70%, #1f2937 100%);
    height: 8px;
    border-radius: 4px;
    margin: 15px 0 5px;
    position: relative;
    opacity: 0.9;
}

.photoperiod-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #4b5563;
    /* Fixed visibility on dark bg inside info item? No, info item is light */
}

/* Marine card accent when selected */
.marine-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.marine-card:hover {
    border-color: #60a5fa;
    background: #f0f7ff;
}

/* Spectrum Bar (marine results) */
.spectrum-bar {
    height: 12px;
    border-radius: 6px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.spectrum-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #4b5563;
    margin-top: 4px;
}

/* Close/Reset Button */
.btn-reset {
    background: transparent;
    border: 1px solid #4b5563;
    color: #9ca3af;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #6b7280;
}

/* Responsiveness */
@media (max-width: 768px) {
    .plant-cards.marine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .dimensions-grid,
    .plant-cards,
    .plant-cards.marine-grid,
    .result-main {
        grid-template-columns: 1fr;
    }

    .calculadora-container {
        padding: 20px;
        border-radius: 16px;
    }

    .calculadora-title {
        font-size: 1.5rem;
    }

    .result-value {
        font-size: 1.8rem;
    }
}