/* Money Stack Styles */
.money-stack-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.money-stack-header {
    text-align: center;
    margin-bottom: 40px;
}

.money-stack-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3em;
    color: var(--primary-gradient);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.money-stack-header p {
    font-size: 1.2em;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.converter-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.currency-input h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.currency-dropdown-container {
    position: relative;
}

.currency-dropdown-container input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1em;
    transition: all 0.3s ease;
}

.currency-dropdown-container input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

#fromAmount, #toAmount {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
}

#fromAmount:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

#toAmount {
    background: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dropdown-list.show {
    display: block;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item .currency-symbol {
    font-weight: bold;
    color: var(--accent-color);
    min-width: 30px;
}

.dropdown-item .currency-name {
    color: var(--text-light);
}

.dropdown-item .currency-type {
    color: var(--text-gray);
    font-size: 0.9em;
    margin-left: auto;
}

.selected-currency {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 5px;
}

.selected-currency .currency-symbol {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2em;
}

.selected-currency .currency-name {
    color: var(--text-light);
    font-size: 0.9em;
}

.swap-button {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2em;
}

.swap-button:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.conversion-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.rate-display, .last-updated {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.rate-display i, .last-updated i {
    color: var(--accent-color);
}

.visualization-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-controls {
    margin-bottom: 30px;
}

.stack-controls h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stack-options {
    display: flex;
    gap: 15px;
}

.stack-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.stack-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    color: var(--text-light);
}

.stack-btn.active {
    background: var(--primary-gradient);
    border-color: var(--accent-color);
    color: white;
}

.stack-display {
    min-height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stack-placeholder {
    text-align: center;
    color: var(--text-gray);
}

.stack-placeholder i {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.stack-placeholder h4 {
    margin-bottom: 10px;
    color: var(--text-light);
}

.stack-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.stack-item {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.stack-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.money-bill {
    width: 60px;
    height: 30px;
    background: linear-gradient(45deg, #2d5a27, #4a7c59);
    border: 2px solid #5a8a5a;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.crypto-coin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.7em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gold-bar {
    width: 50px;
    height: 25px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: 2px solid #e6c200;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8860b;
    font-weight: bold;
    font-size: 0.7em;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.silver-bar {
    width: 45px;
    height: 20px;
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    border: 2px solid #a0a0a0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #808080;
    font-weight: bold;
    font-size: 0.6em;
    box-shadow: 0 2px 6px rgba(192, 192, 192, 0.4);
}

.diamond {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #b9f2ff, #00d4ff);
    border: 2px solid #00bfff;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.5);
}

.diamond .icon {
    transform: rotate(-45deg);
    color: white;
    font-size: 0.8em;
}

.oil-barrel {
    width: 35px;
    height: 45px;
    background: linear-gradient(180deg, #2c2c2c, #1a1a1a);
    border: 2px solid #404040;
    border-radius: 5px 5px 3px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7em;
    position: relative;
}

.oil-barrel::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 3px;
    background: #404040;
    border-radius: 2px;
}

.stack-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: none;
}

.stack-info.show {
    display: block;
}

.stack-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9em;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .swap-button {
        order: 1;
        margin: 0 auto;
    }
    
    .conversion-info {
        grid-template-columns: 1fr;
    }
    
    .stack-options {
        flex-direction: column;
    }
    
    .stack-stats {
        grid-template-columns: 1fr;
    }
    
    .money-stack-header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .money-stack-container {
        padding: 15px;
        margin-top: 80px;
    }
    
    .converter-section,
    .visualization-section {
        padding: 20px;
    }
    
    .money-stack-header h1 {
        font-size: 2em;
    }
}