/* Base Styles */
:root {
    --primary-color: #ff4d6d;
    --secondary-color: #6a4dff;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --success-color: #4dff88;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --zodiac-aries: #ff4d4d;
    --zodiac-taurus: #4dff4d;
    --zodiac-gemini: #ffff4d;
    --zodiac-cancer: #4dffff;
    --zodiac-leo: #ff8c4d;
    --zodiac-virgo: #8cff4d;
    --zodiac-libra: #ff4dff;
    --zodiac-scorpio: #4d4dff;
    --zodiac-sagittarius: #ff8cff;
    --zodiac-capricorn: #8c8c8c;
    --zodiac-aquarius: #8cffff;
    --zodiac-pisces: #ff8c8c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-style: italic;
}

.calculator-container {
    display: flex;
    flex-direction: column;
}

.input-section, .result-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.input-section h2, .result-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

.person-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.person-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group input[type="range"] {
    width: calc(100% - 50px);
    margin-right: 10px;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group label, .radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}

.calculate-btn-container {
    text-align: center;
    margin-top: 20px;
}

#calculate-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#calculate-btn:hover {
    background-color: #ff3355;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#calculate-btn:active {
    transform: translateY(0);
}

.small-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.small-btn:hover {
    background-color: #5a3fff;
}

/* Results Section */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.person-result {
    text-align: center;
    flex: 1;
}

.color-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.compatibility-score {
    text-align: center;
    flex: 1;
}

.score-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.score-circle span {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.result-details {
    margin-top: 30px;
}

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

.result-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-item h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.unique-factors, .dna-comparison, .final-analysis {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dna-strings {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.dna-match {
    margin-top: 15px;
}

.dna-match-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.dna-match-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn i {
    font-size: 1.2rem;
}

.share-btn:nth-child(1) {
    background-color: #1da1f2;
    color: white;
}

.share-btn:nth-child(2) {
    background-color: #4267b2;
    color: white;
}

.share-btn:nth-child(3) {
    background-color: #6c757d;
    color: white;
}

.share-btn:nth-child(4) {
    background-color: var(--primary-color);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

footer .tech {
    font-style: italic;
    color: var(--primary-color);
}

/* DNA Visualization */
.dna-visualization {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 15px 0;
    text-align: center;
}

.dna-match {
    color: var(--success-color);
    font-weight: bold;
}

.dna-mismatch {
    color: var(--primary-color);
    opacity: 0.6;
}

.personality-types {
    text-align: center;
    font-size: 1.1rem;
    margin: 10px 0;
}

.personality-types span {
    font-weight: bold;
    color: var(--secondary-color);
}

/* History Section */
.history-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

#history-list {
    list-style-type: none;
}

#history-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#history-list li:last-child {
    border-bottom: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .result-header {
        flex-direction: column;
    }
    
    .person-result {
        margin-bottom: 20px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Zodiac Colors */
.zodiac-aries { background-color: var(--zodiac-aries); }
.zodiac-taurus { background-color: var(--zodiac-taurus); }
.zodiac-gemini { background-color: var(--zodiac-gemini); }
.zodiac-cancer { background-color: var(--zodiac-cancer); }
.zodiac-leo { background-color: var(--zodiac-leo); }
.zodiac-virgo { background-color: var(--zodiac-virgo); }
.zodiac-libra { background-color: var(--zodiac-libra); }
.zodiac-scorpio { background-color: var(--zodiac-scorpio); }
.zodiac-sagittarius { background-color: var(--zodiac-sagittarius); }
.zodiac-capricorn { background-color: var(--zodiac-capricorn); }
.zodiac-aquarius { background-color: var(--zodiac-aquarius); }
.zodiac-pisces { background-color: var(--zodiac-pisces); }