/* public/assets/css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #3b82f6;
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.form-actions {
    margin-top: 30px;
    text-align: right;
}

/* Alerts */
.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Recent Alerts */
.recent-alerts {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recent-alerts h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.25rem;
}

.alert-item {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.alert-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.alert-type.rsi { background: #3b82f6; }
.alert-type.price { background: #10b981; }
.alert-type.support { background: #f59e0b; }
.alert-type.orderbook { background: #8b5cf6; }
.alert-type.liquidation { background: #ef4444; }
.alert-type.whale { background: #6366f1; }
.alert-type.buying_spike { background: #10b981; }
.alert-type.selling_spike { background: #ef4444; }
.alert-type.accumulation { background: #14b8a6; }
.alert-type.distribution { background: #f97316; }

.alert-time {
    color: #666;
    font-size: 11px;
}

.alert-symbol {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.alert-title {
    color: #333;
    margin-bottom: 5px;
}

.alert-message {
    color: #666;
    font-size: 0.9rem;
    white-space: pre-line;
}

/* Settings */
.settings-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.25rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.alert-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Tracked Coins Table */
.coins-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-collapse: collapse;
}

.coins-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.coins-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.coins-table tr:last-child td {
    border-bottom: none;
}

.coins-table .symbol {
    font-weight: bold;
    color: #333;
}

.coins-table .price {
    font-family: monospace;
}

.coins-table .trend {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.trend-bullish { background: #d1fae5; color: #065f46; }
.trend-bearish { background: #fee2e2; color: #991b1b; }
.trend-neutral { background: #f3f4f6; color: #6b7280; }

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.text-center {
    text-align: center;
    margin-top: 20px;
}

.text-center a {
    color: #3b82f6;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

/* Landing Page */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.landing-header {
    text-align: center;
    margin-bottom: 40px;
}

.landing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.landing-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.landing-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    width: 100%;
}

.feature {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
}

.feature p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* No Data */
.no-data {
    text-align: center;
    color: #666;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .alert-types-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-header h1 {
        font-size: 2rem;
    }
    
    .landing-buttons {
        flex-direction: column;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}