/* MLM Platform - Main Stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
header { background: #1a365d; color: white; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; }
nav a { color: white; text-decoration: none; margin-left: 20px; padding: 8px 15px; border-radius: 4px; transition: background 0.3s; }
nav a:hover, nav a.active { background: #2c5282; }
.card { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; }
.card h2, .card h3 { color: #1a365d; margin-bottom: 15px; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.btn { display: inline-block; padding: 10px 20px; background: #3182ce; color: white; text-decoration: none; border-radius: 4px; border: none; cursor: pointer; font-size: 14px; transition: background 0.3s; }
.btn:hover { background: #2c5282; }
.btn-success { background: #38a169; } .btn-success:hover { background: #2f855a; }
.btn-danger { background: #e53e3e; } .btn-danger:hover { background: #c53030; }
.btn-warning { background: #dd6b20; } .btn-warning:hover { background: #c05621; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #4a5568; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 14px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #3182ce; box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1); }
.alert { padding: 12px 15px; border-radius: 4px; margin-bottom: 15px; }
.alert-success { background: #c6f6d5; color: #276749; border: 1px solid #9ae6b4; }
.alert-error { background: #fed7d7; color: #c53030; border: 1px solid #fc8181; }
.alert-info { background: #bee3f8; color: #2a4365; border: 1px solid #90cdf4; }
.alert-warning { background: #feebc8; color: #c05621; border: 1px solid #fbd38d; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
table th, table td { padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; }
table th { background: #edf2f7; font-weight: 600; color: #2d3748; }
table tr:hover { background: #f7fafc; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; border-radius: 8px; text-align: center; }
.stat-card.green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.stat-card.orange { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stat-card.blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.stat-card h3 { font-size: 2rem; margin: 0; border: none; color: white; }
.stat-card p { margin: 5px 0 0; opacity: 0.9; }
.tree-container { overflow-x: auto; padding: 20px; }
.tree-node { display: inline-block; background: white; border: 2px solid #3182ce; border-radius: 8px; padding: 10px; margin: 5px; text-align: center; min-width: 120px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.tree-node .name { font-weight: bold; color: #1a365d; }
.tree-node .id { font-size: 12px; color: #718096; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-success { background: #c6f6d5; color: #276749; }
.badge-warning { background: #feebc8; color: #c05621; }
.badge-danger { background: #fed7d7; color: #c53030; }
.badge-info { background: #bee3f8; color: #2a4365; }
.ticker { background: #1a365d; color: white; padding: 10px; overflow: hidden; white-space: nowrap; margin-bottom: 20px; border-radius: 4px; }
.ticker span { display: inline-block; animation: ticker 30s linear infinite; padding-left: 100%; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
footer { background: #2d3748; color: white; text-align: center; padding: 20px; margin-top: 40px; }
@media (max-width: 768px) { header .container { flex-direction: column; gap: 10px; } nav a { margin: 5px; display: inline-block; } .stats-grid { grid-template-columns: 1fr; } }
