
.fraction-calculator-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 0;
}

.fraction-calculator-wrapper {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.fraction-calculator-title {
    color: #4a5568;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fraction-input {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.fraction-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fraction-part {
    width: 70px;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.fraction-part:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fraction-part.result-display {
    border: none;
    background: #f7fafc;
    color: #2d3748;
    font-weight: bold;
}

.fraction-line {
    width: 70px;
    height: 2px;
    background: #4a5568;
    margin: 3px 0;
}

.equals {
    font-size: 20px;
    color: #4a5568;
    font-weight: bold;
}

.calculate-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px auto;
    display: block;
}

.calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.result-section {
    margin-top: 25px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    display: none;
}

.result-title {
    color: #2d3748;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.steps {
    text-align: left;
    margin-top: 15px;
}

.step {
    margin: 8px 0;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    font-size: 14px;
}

.gcd-info {
    background: #e6fffa;
    border-left-color: #38b2ac;
    color: #234e52;
}

.clear-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    margin: 10px auto;
    display: block;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #c53030;
}

.error {
    color: #e53e3e;
    background: #fed7d7;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    text-align: center;
}

.info-box {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 12px;
    margin-top: 20px;
    color: #2b6cb0;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 480px) {
    .fraction-calculator-wrapper {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .fraction-calculator-title {
        font-size: 20px;
    }
    
    .fraction-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .equals {
        transform: rotate(90deg);
    }
    
    .fraction-part {
        width: 60px;
        font-size: 14px;
    }
    
    .fraction-line {
        width: 60px;
    }
}

/* Dark theme */
.fraction-calculator-container[data-theme="dark"] .fraction-calculator-wrapper {
    background: #2d3748;
    color: white;
}

.fraction-calculator-container[data-theme="dark"] .fraction-part {
    background: #4a5568;
    border-color: #718096;
    color: white;
}

.fraction-calculator-container[data-theme="dark"] .result-section {
    background: #4a5568;
}

.fraction-calculator-container[data-theme="dark"] .step {
    background: #718096;
    color: white;
}

/* Minimal theme */
.fraction-calculator-container[data-theme="minimal"] .fraction-calculator-wrapper {
    box-shadow: none;
    border: 2px solid #e2e8f0;
    background: #fafafa;
}

.fraction-calculator-container[data-theme="minimal"] .calculate-btn {
    background: #4299e1;
    border-radius: 4px;
}
