/* Days Between Dates Calculator Styles */
.sth-days-calculator {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.sth-days-input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.sth-date-input-group {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    text-align: center;
}

.sth-date-input-group h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

.sth-date-input-field {
    width: 100%;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    margin: 10px 0;
    transition: border-color 0.3s ease;
    background: white;
}

.sth-date-input-field:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.sth-date-hint {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
    font-style: italic;
}

.sth-days-options {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #007bff;
}

.sth-option-group {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sth-option-group:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.sth-option-group input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
    cursor: pointer;
}

.sth-option-group label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
}

.sth-days-calculate-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #6f42c1, #5a2d8f);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sth-days-calculate-btn:hover {
    background: linear-gradient(135deg, #5a2d8f, #492268);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

.sth-days-result {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 6px solid #6f42c1;
}

.sth-days-result-header h3 {
    margin: 0 0 25px 0;
    color: #333;
    text-align: center;
    font-size: 24px;
}

.sth-days-summary {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sth-main-result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sth-result-number {
    font-size: 48px;
    font-weight: bold;
    color: #6f42c1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.sth-result-label {
    font-size: 18px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sth-days-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.sth-breakdown-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #007bff;
    transition: transform 0.3s ease;
}

.sth-breakdown-item:hover {
    transform: translateY(-5px);
}

.sth-breakdown-label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.sth-breakdown-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.sth-days-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.sth-detailed-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #28a745;
    transition: transform 0.3s ease;
}

.sth-detailed-item:hover {
    transform: translateY(-5px);
}

.sth-detailed-label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.sth-detailed-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

.sth-date-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.sth-date-info-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ffc107;
}

.sth-date-info-item h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

.sth-date-info-item p {
    margin: 10px 0;
    font-size: 16px;
    color: #666;
}

.sth-date-info-item span {
    font-weight: bold;
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sth-days-calculator {
        padding: 20px;
        margin: 10px;
    }
    
    .sth-days-input-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sth-date-input-group {
        padding: 20px;
    }
    
    .sth-result-number {
        font-size: 36px;
    }
    
    .sth-days-breakdown,
    .sth-days-detailed {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sth-breakdown-item,
    .sth-detailed-item {
        padding: 15px;
    }
    
    .sth-breakdown-value {
        font-size: 20px;
    }
    
    .sth-detailed-value {
        font-size: 18px;
    }
    
    .sth-date-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sth-days-breakdown,
    .sth-days-detailed {
        grid-template-columns: 1fr;
    }
    
    .sth-result-number {
        font-size: 32px;
    }
    
    .sth-days-options {
        padding: 20px;
    }
    
    .sth-option-group {
        padding: 8px;
        margin: 10px 0;
    }
}
