* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5865F2;
    --primary-dark: #4752C4;
    --bg-dark: #1e1f22;
    --bg-darker: #111214;
    --bg-light: #2b2d31;
    --text: #ffffff;
    --text-muted: #b5bac1;
    --success: #3ba55d;
    --danger: #ed4245;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--bg-light);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #7289da 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Buttons */
.btn-primary,
.btn-large {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover,
.btn-large:hover {
    background: var(--primary-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* Dashboard */
.dashboard-container {
    padding: 2rem 0;
}

.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.guild-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s, box-shadow 0.3s;
}

.guild-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.guild-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.guild-icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

/* Guild Dashboard */
.guild-dashboard {
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 0.5rem;
}

.settings-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.settings-section h3 {
    margin-bottom: 1.5rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    background: var(--bg-dark);
    border: 1px solid var(--bg-darker);
    color: var(--text);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Logs */
.logs-container {
    max-height: 400px;
    overflow-y: auto;
}

.log-entry {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.log-type {
    background: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 1rem;
}

.log-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    color: var(--text-muted);
}

.no-guilds {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* Music Controls */
.music-controls {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
}

.now-playing {
    margin-bottom: 1rem;
}

.now-playing p {
    margin: 0.5rem 0;
}

.control-buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-danger:hover {
    opacity: 0.8;
}

.queue-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-darker);
}

.queue-list h4 {
    margin-bottom: 0.5rem;
}

.queue-list ul {
    list-style: none;
    padding: 0;
}

.queue-list li {
    padding: 0.5rem;
    background: var(--bg-darker);
    margin: 0.25rem 0;
    border-radius: 4px;
}

/* Blacklist */
.blacklist-container {
    margin-top: 1rem;
}

.blacklist-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.blacklist-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-dark);
    margin: 0.5rem 0;
    border-radius: 8px;
}

.btn-danger-small {
    background: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.btn-danger-small:hover {
    opacity: 0.8;
}

.add-blacklist {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.blacklist-input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--bg-darker);
    color: var(--text);
    padding: 0.75rem;
    border-radius: 8px;
}

.help-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}