* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-group input[type="number"],
.form-group input[type="range"] {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[type="range"] {
    padding: 0;
    height: 40px;
}

#speedValue {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1em;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-start {
    background: #10b981;
    color: white;
}

.btn-stop {
    background: #ef4444;
    color: white;
}

.btn-reset {
    background: #f59e0b;
    color: white;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.status-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.status-item .label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.status-item .value {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.status-running {
    color: #10b981 !important;
    animation: pulse 2s infinite;
}

.status-stopped {
    color: #ef4444 !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.trade-log {
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.trade-entry {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.trade-buy {
    border-left-color: #10b981;
}

.trade-sell {
    border-left-color: #ef4444;
}

.trade-time {
    font-size: 0.85em;
    color: #666;
}

.trade-details {
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

.empty-message {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.help-card {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.help-card h2 {
    border-bottom-color: #ffc107;
}

.help-card ol {
    margin-left: 20px;
}

.help-card li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1.05em;
}

.help-card strong {
    color: #667eea;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Mod Seçici */
.mode-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.mode-btn {
    flex: 1;
    max-width: 300px;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border: 3px solid white;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.mode-content {
    display: none;
}

.mode-content.active {
    display: block;
}

/* Select Input */
.select-input {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.select-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

/* Analyze Button */
.btn-analyze {
    background: #8b5cf6;
    color: white;
}

/* AI Analysis */
.ai-analysis {
    min-height: 200px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analysis-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #e9ecef;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.analysis-header h3 {
    font-size: 1.1em;
    color: #333;
    margin: 0;
}

.analysis-header .price {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
}

.analysis-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.indicator {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.indicator .label {
    font-weight: bold;
    color: #666;
}

.indicator .value {
    color: #333;
}

.score-bar {
    position: relative;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 10px;
}

.score-fill {
    height: 100%;
    transition: width 0.5s;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #333;
    text-shadow: 0 0 3px white;
}

.recommendation {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 10px;
}

/* Recommendations */
.recommendations {
    min-height: 150px;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.rec-icon {
    font-size: 2em;
    min-width: 50px;
    text-align: center;
}

.rec-content {
    flex: 1;
}

.rec-content h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.rec-content p {
    margin: 5px 0;
    color: #666;
    font-size: 0.95em;
}

.rec-reason {
    font-style: italic;
    color: #555 !important;
}

.rec-action {
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    min-width: 120px;
    text-align: center;
}

@media (max-width: 768px) {
    .mode-selector {
        flex-direction: column;
    }
    
    .mode-btn {
        max-width: 100%;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendation-item {
        flex-direction: column;
        text-align: center;
    }
}
