/**
 * Spark Elite Bot Public CSS
 */

.spark-elite-bot-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.spark-status-card {
    background: linear-gradient(135deg, #181a20 0%, #2a2d35 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #fcd535;
    box-shadow: 0 8px 32px rgba(252, 213, 53, 0.1);
    color: white;
}

.spark-balance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.spark-balance-item {
    background: rgba(252, 213, 53, 0.1);
    border: 1px solid #fcd535;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.spark-balance-label {
    color: #fcd535;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.spark-balance-amount {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.spark-timer-section {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.spark-timer-status {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.spark-timer-display {
    font-size: 36px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #fcd535;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(252, 213, 53, 0.3);
}

.spark-trading-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.spark-trading-section.active {
    opacity: 1;
    border-color: #fcd535;
    box-shadow: 0 0 20px rgba(252, 213, 53, 0.2);
}

.spark-form-group {
    margin-bottom: 20px;
}

.spark-form-label {
    display: block;
    color: #fcd535;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.spark-form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.spark-form-input:focus {
    outline: none;
    border-color: #fcd535;
    box-shadow: 0 0 0 2px rgba(252, 213, 53, 0.2);
}

.spark-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #fcd535 0%, #f1c40f 100%);
    color: #181a20;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spark-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f1c40f 0%, #e1b000 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 213, 53, 0.4);
}

.spark-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spark-trade-button {
    margin-top: 20px;
    font-size: 18px;
    padding: 18px;
}

.spark-autopilot-section {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid #8a2be2;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.spark-autopilot-title {
    color: #8a2be2;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.spark-autopilot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.spark-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.spark-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.spark-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.spark-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .spark-slider {
    background-color: #fcd535;
}

input:checked + .spark-slider:before {
    transform: translateX(26px);
}

.spark-message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
    text-align: center;
}

.spark-message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.spark-message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.spark-message.info {
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid #17a2b8;
    color: #17a2b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .spark-elite-bot-container {
        padding: 15px;
    }

    .spark-balance-grid,
    .spark-autopilot-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .spark-timer-display {
        font-size: 28px;
    }

    .spark-form-input {
        font-size: 14px;
    }
}

/* Loading Animation */
.spark-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(252, 213, 53, 0.3);
    border-radius: 50%;
    border-top-color: #fcd535;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status Indicators */
.spark-status-online {
    color: #28a745;
}

.spark-status-offline {
    color: #dc3545;
}

.spark-status-warning {
    color: #ffc107;
}