/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background-color: #16213e;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #0f3460;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e94560;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: #eee;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #e94560;
}

.nav-user {
    color: #888;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background-color: #e94560;
    border-radius: 4px;
}

.btn-logout:hover {
    background-color: #c73e54;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Login page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    background-color: #16213e;
    padding: 3rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #e94560;
}

.login-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #aaa;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid #0f3460;
    border-radius: 4px;
    background-color: #1a1a2e;
    color: #eee;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #e94560;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #e94560;
    color: white;
}

.btn-primary:hover {
    background-color: #c73e54;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    background-color: #0f3460;
    color: #eee;
}

.btn-small:hover {
    background-color: #1a4a7a;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: rgba(233, 69, 96, 0.2);
    border: 1px solid #e94560;
    color: #e94560;
}

/* Dashboard */
.dashboard h1,
.guild-details h1 {
    margin-bottom: 0.5rem;
}

.subtitle,
.guild-id {
    color: #888;
    margin-bottom: 2rem;
}

.guild-id code {
    background-color: #0f3460;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Stats cards */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #16213e;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #0f3460;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #e94560;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #16213e;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #0f3460;
}

.data-table th {
    background-color: #0f3460;
    font-weight: 600;
    color: #eee;
}

.data-table tr:hover {
    background-color: rgba(15, 52, 96, 0.5);
}

.data-table code {
    background-color: #1a1a2e;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 2rem !important;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-locked {
    background-color: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

.badge-open {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.badge-add {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.badge-remove {
    background-color: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

/* Sections */
.section {
    margin-bottom: 2rem;
}

.section h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #eee;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Page header */
.page-header {
    margin-bottom: 2rem;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #e94560;
}

/* Footer */
.footer {
    background-color: #16213e;
    padding: 1rem 2rem;
    text-align: center;
    color: #666;
    border-top: 1px solid #0f3460;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}
