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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 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;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.nav-links {
    text-align: center;
    margin-bottom: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.panel {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

/* Hosting info */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.info-card {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.info-card .value {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
}

.info-card .label {
    color: #666;
    margin-top: 5px;
}

/* Auth Styles */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    color: #999;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.3s;
}

button:hover {
    background: #5568d3;
}

button.btn-secondary {
    background: #999;
}

button.btn-secondary:hover {
    background: #777;
}

button.btn-danger {
    background: #e74c3c;
}

button.btn-danger:hover {
    background: #c0392b;
}

button.btn-danger:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button.btn-success {
    background: #27ae60;
}

button.btn-success:hover {
    background: #229954;
}

.message {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.show {
    display: block;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.dashboard-header h2 {
    color: #333;
}

.user-info {
    text-align: right;
}

.user-info p {
    color: #666;
    margin-bottom: 10px;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.server-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.server-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.server-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.server-info {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.server-info p {
    margin-bottom: 5px;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 15px;
}

.status-badge.running {
    background: #d4edda;
    color: #155724;
}

.status-badge.stopped {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.starting {
    background: #fff3cd;
    color: #856404;
}

.server-actions {
    display: flex;
    gap: 10px;
}

.server-actions button {
    flex: 1;
    padding: 8px;
    font-size: 0.9em;
}

.create-server {
    margin-top: 20px;
    padding: 20px;
    background: #f0f7ff;
    border: 2px dashed #667eea;
    border-radius: 8px;
}

.create-server h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.create-server input {
    margin-bottom: 10px;
}
