/* Date Age Calculator Styles */
.dac-container {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dac-header {
    background: linear-gradient(135deg, #0061ff, #60efff);
    color: white;
    padding: 20px;
    text-align: center;
}

.dac-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.dac-header p {
    font-size: 16px;
    opacity: 0.9;
}

.dac-input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.dac-input-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.dac-input-group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.dac-date-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dac-input {
    display: flex;
    flex-direction: column;
}

.dac-input label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.dac-input input, .dac-input select {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.dac-input input:focus, .dac-input select:focus {
    outline: none;
    border-color: #0061ff;
    box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.1);
}

.dac-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.dac-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dac-btn-primary {
    background: linear-gradient(135deg, #0061ff, #60efff);
    color: white;
}

.dac-btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.dac-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dac-date-display {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 15px;
    margin: 0 20px 20px;
    text-align: center;
}

.dac-date-display p {
    margin: 5px 0;
    font-size: 16px;
    color: #0061ff;
    font-weight: 500;
}

.dac-results {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 0 20px 20px;
}

.dac-results h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

.dac-result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.dac-result-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.dac-result-card h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.dac-result-value {
    font-size: 28px;
    font-weight: 700;
    color: #0061ff;
    margin-bottom: 5px;
}

.dac-result-unit {
    font-size: 14px;
    color: #888;
}

.dac-detailed-results {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.dac-detailed-results h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.dac-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dac-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.dac-detail-item:last-child {
    border-bottom: none;
}

.dac-detail-label {
    color: #666;
    font-weight: 500;
}

.dac-detail-value {
    font-weight: 600;
    color: #0061ff;
}

.dac-full-result {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.dac-full-result h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.dac-full-result-text {
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    color: #0061ff;
    font-weight: 600;
}

.dac-history {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 0 20px 20px;
}

.dac-history h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 22px;
}

.dac-history-list {
    max-height: 200px;
    overflow-y: auto;
}

.dac-history-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dac-history-dates {
    font-weight: 600;
    color: #333;
}

.dac-history-result {
    color: #0061ff;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dac-input-section {
        grid-template-columns: 1fr;
    }
    
    .dac-date-inputs {
        grid-template-columns: 1fr;
    }
    
    .dac-buttons {
        grid-template-columns: 1fr;
    }
    
    .dac-result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dac-detail-grid {
        grid-template-columns: 1fr;
    }
}