:root {
    --color-jade: #2E8B57;
    --color-gold: #D4AF37;
    --color-gray: #6c757d;
}

/* Custom color classes */
.text-jade {
    color: var(--color-jade) !important;
}

.text-gold {
    color: var(--color-gold) !important;
}

.text-gray {
    color: var(--color-gray) !important;
}

.bg-jade {
    background-color: var(--color-jade) !important;
}

.bg-gold {
    background-color: var(--color-gold) !important;
}

/* Custom button styles */
.btn-jade {
    background-color: var(--color-jade);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-jade:hover {
    background-color: #246B47;
    color: white;
    transform: translateY(-2px);
}

.btn-jade:active {
    transform: translateY(0);
}

/* Form control custom styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-jade);
    box-shadow: 0 0 0 0.25rem rgba(46, 139, 87, 0.25);
}

/* Result container styles */
.result-container {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.result-item {
    transition: background-color 0.3s ease;
}

.result-item:hover {
    background-color: rgba(46, 139, 87, 0.05);
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gold-calculator-container {
        padding: 1rem !important;
    }
    
    .btn-jade {
        width: 100%;
    }
}

/* RTL Support */
.gold-calculator-container {
    direction: rtl;
    text-align: right;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-container {
    animation: fadeIn 0.3s ease-out;
}

.gold-calculator-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.current-price {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
}

.price-value {
    color: #e67e22;
    font-weight: bold;
    margin-right: 0.5rem;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
	height: 50px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Make specific form groups span full width */
.form-group:nth-last-child(3),
.form-group:nth-last-child(2),
.form-group:nth-last-child(1) {
    grid-column: 1 / -1;
}

.calculate-btn {
    grid-column: 1 / -1;
    background: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calculate-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

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

/* Loading effect for button */
.calculate-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.calculate-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

.result-container {
    grid-column: 1 / -1;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.result-container h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.result-item {
	display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}
span.text-gray {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: black !important;
}
span#final-price-result {
    font-weight: 500;
    padding-left: 1%;
    font-size: 15px;
    color: black !important;
}
.result-item:last-child {
    border-bottom: none;
}

.result-item span:first-child {
    color: #34495e;
    font-weight: 500;
}

.result-item span:nth-child(2) {
    color: #e67e22;

}

/* Loading indicator */
.loading-indicator {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1rem;
}

.css-loader {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .calculator-form {
        grid-template-columns: 1fr;
    }
    
    .gold-calculator-container {
        padding: 1rem;
        margin: 1rem;
    }
} 

