/* style.css - Basic styling for Crypto Alerts */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.button-group {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-set {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-set:hover {
    background: #218838;
}

.btn-text {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.btn-text:hover {
    color: #333;
}

.token-area {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-family: monospace;
    font-size: 14px;
    min-height: 50px;
    word-break: break-all;
}

.threshold-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.threshold-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.crypto-icon {
    font-size: 24px;
    background: #f0f0f0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.threshold-input-group {
    margin-bottom: 20px;
}

.threshold-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.buy {
    background: #d4edda;
    color: #155724;
}

.sell {
    background: #f8d7da;
    color: #721c24;
}

.input-with-button {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

input[type="number"] {
    flex: 1;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.threshold-display {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.coin-option {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.coin-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.coin-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.coin-icon {
    font-size: 24px;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #dee2e6;
}

.coin-name {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.coin-symbol {
    font-size: 12px;
    color: #6c757d;
}

.alert-history {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
}

.alert-item {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.price-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.change {
    font-size: 18px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-note {
    margin-top: 5px;
    opacity: 0.8;
}

.text-muted {
    color: #6c757d;
}

.alert {
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .threshold-grid {
        grid-template-columns: 1fr;
    }
    
    .coin-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}
