/**
 * Space Trader Web - CSS
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1328 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(100, 150, 255, 0.3);
}

header h1 {
    font-size: 2.5em;
    color: #64b5f6;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
}

.subtitle {
    color: #90caf9;
    margin-top: 10px;
}

/* Forms */
.forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 255, 0.2);
}

.form-box h2 {
    color: #64b5f6;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #b0b0b0;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: #2196F3;
    color: white;
}

.btn-primary:hover {
    background: #1976D2;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.5);
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-warning {
    background: #FF9800;
    color: white;
}

.btn-warning:hover {
    background: #F57C00;
}

.btn-info {
    background: #00BCD4;
    color: white;
}

.btn-info:hover {
    background: #0097A7;
}

.btn-secondary {
    background: #607D8B;
    color: white;
}

.btn-secondary:hover {
    background: #546E7A;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ffcdd2;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #c8e6c9;
}

.alert-info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196F3;
    color: #bbdefb;
}

/* Info Box */
.info-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 255, 0.2);
}

.info-box h3 {
    color: #64b5f6;
    margin-bottom: 15px;
}

.info-box ul {
    list-style-position: inside;
    margin: 15px 0;
}

.info-box li {
    padding: 5px 0;
}

/* Game Container */
.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-nav {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(100, 150, 255, 0.3);
}

.game-layout {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-right: 1px solid rgba(100, 150, 255, 0.2);
}

.sidebar h3 {
    color: #64b5f6;
    margin-bottom: 15px;
}

.commander-list {
    list-style: none;
    margin-bottom: 20px;
}

.commander-list li {
    margin-bottom: 10px;
}

.commander-list a {
    display: block;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
}

.commander-list a:hover,
.commander-list li.active a {
    background: rgba(100, 150, 243, 0.2);
    border: 1px solid #64b5f6;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Dashboard */
.dashboard > div {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    margin-bottom: 20px;
}

.dashboard h2 {
    color: #64b5f6;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.3);
    padding-bottom: 10px;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.status-grid > div {
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.action-buttons .btn {
    width: 100%;
    text-align: center;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table thead {
    background: rgba(100, 150, 243, 0.2);
}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(100, 150, 255, 0.2);
}

.data-table tbody tr:hover {
    background: rgba(100, 150, 243, 0.1);
}

/* Ranking */
.ranking-filters {
    text-align: center;
    margin: 20px 0;
}

.ranking-filters .btn {
    margin: 0 5px;
}

.panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    margin-bottom: 20px;
}

.panel h2 {
    color: #64b5f6;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .forms-container {
        grid-template-columns: 1fr;
    }

    .game-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}