* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
}

.login-box h1 {
    color: #5865F2;
    margin-bottom: 16px;
    font-size: 28px;
}

.login-box p {
    color: #666;
    margin-bottom: 32px;
    line-height: 1.5;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #5865F2;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #1e1f22;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar h1 {
    color: white;
    font-size: 20px;
}

.logout-btn {
    margin-top: auto;
    background: #ed4245;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #c93b3e;
}

.main-content {
    flex: 1;
    padding: 40px;
    background: #313338;
}

.main-content h2 {
    color: white;
    margin-bottom: 24px;
}

.guilds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.guild-card {
    background: #2b2d31;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.guild-card:hover {
    background: #35373c;
    transform: translateY(-4px);
}

.guild-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.guild-info h3 {
    color: white;
    font-size: 18px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-primary, .btn-secondary {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #4752c4;
}

.btn-secondary {
    background: #4e5058;
    color: white;
}

.btn-secondary:hover {
    background: #5c5e66;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.command-card {
    background: #2b2d31;
    border-radius: 12px;
    padding: 20px;
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.command-name {
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.delete-btn {
    background: #ed4245;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.delete-btn:hover {
    background: #c93b3e;
}

.command-preview {
    background: #232428;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #5865F2;
}

.command-preview h4 {
    color: white;
    margin-bottom: 8px;
}

.command-preview p {
    color: #b5bac1;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: #313338;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.modal-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
}

.modal-header h2 {
    color: white;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

#command-form {
    padding: 0 0 24px 24px;
}

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

.form-group label {
    color: white;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #1e1f22;
    background: #1e1f22;
    color: white;
    font-size: 14px;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #5865F2;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.checkbox-group input {
    width: auto;
}

#fields-section {
    margin-top: 24px;
}

#fields-section h3 {
    color: white;
    margin-bottom: 16px;
}

.field-item {
    background: #2b2d31;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.field-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.remove-field-btn {
    background: #ed4245;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

#embed-preview {
    padding: 0 24px 24px 0;
}

#embed-preview h3 {
    color: white;
    margin-bottom: 16px;
}

.embed-preview-box {
    background: #232428;
    border-radius: 8px;
    padding: 16px;
}

.embed-preview {
    display: flex;
    background: #2b2d31;
    border-radius: 4px;
    overflow: hidden;
}

.embed-color-bar {
    width: 4px;
    background: #5865F2;
    flex-shrink: 0;
}

.embed-content {
    padding: 16px;
    flex: 1;
}

.embed-content h4 {
    color: white;
    margin-bottom: 8px;
}

.embed-content p {
    color: #b5bac1;
    font-size: 14px;
    line-height: 1.5;
}

.embed-field {
    margin-top: 12px;
}

.embed-field h5 {
    color: white;
    font-size: 14px;
    margin-bottom: 4px;
}

.embed-field p {
    font-size: 13px;
}

.embed-footer-preview {
    margin-top: 12px;
    color: #949ba4;
    font-size: 12px;
}
