/* Estilos específicos para a calculadora dia/noite */
.daynight-calculator-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-form-panel {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.results-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-card {
    background-color: rgba(20, 20, 30, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 100, 255, 0.3);
}

.form-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.duration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dark-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(80, 80, 100, 0.5);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.unit-select {
    width: 120px;
    flex-shrink: 0;
    margin-left: auto;
}

.dark-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(80, 80, 100, 0.5);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
}

.persistent-time {
    margin-top: 2rem;
    border-top: 1px solid rgba(80, 80, 100, 0.3);
    padding-top: 1.5rem;
}

.persistent-time-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.persistent-time-text {
    flex: 1;
}

.info-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: help;
    position: relative;
    margin-left: 5px;
}

.info-icon:hover::after {
    content: attr(title);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(20, 30, 50, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 100, 255, 0.3);
    width: max-content;
    max-width: 250px;
}

.persistent-description {
    margin-top: 0.2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(60, 60, 80, 0.8);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #8b5cf6;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Calculate Button */
.calculate-button {
    width: 100%;
    padding: 1rem;
    background-color: #8b5cf6;
    color: white;
    border: 1px solid rgba(100, 100, 255, 0.3);
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calculate-button:hover {
    background-color: #7c3aed;
}

/* Result Cards */
.result-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: 120px;
    border: 1px solid rgba(100, 100, 255, 0.3);
}

.day-card {
    background-color: #90cdf4;
    background-image: linear-gradient(rgba(144, 205, 244, 0.8), rgba(104, 178, 235, 0.8));
    background-size: cover;
    background-position: center;
}

.night-card {
    background-color: #2b6cb0;
    background-image: linear-gradient(rgba(43, 108, 176, 0.8), rgba(26, 86, 153, 0.8));
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.card-value-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.day-card .fa-sun {
    color: #faf089;
    font-size: 2rem;
}

.night-card .fa-moon {
    color: #cbd5e0;
    font-size: 2rem;
}

/* Config Card */
.config-card {
    background-color: rgba(20, 20, 30, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 100, 255, 0.3);
}

.config-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.config-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: monospace;
}

.config-label {
    color: rgba(255, 255, 255, 0.7);
}

.config-value {
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .daynight-calculator-container {
        flex-direction: column;
    }
}
