/**
 * Queue Master Frontend Styles
 */

.qm-frontend {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Notices */
.qm-notice {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.qm-notice-warning {
    background: #fff8e5;
    border: 1px solid #f0c36d;
}

.qm-notice h3 {
    margin: 0 0 10px 0;
    color: #7d5700;
}

.qm-notice p {
    margin: 0 0 15px 0;
    color: #5c4200;
}

/* Discord Status */
.qm-discord-status {
    background: #f0f8ff;
    border: 1px solid #c5dff8;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.qm-discord-connected {
    color: #1a5d1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qm-discord-connected .dashicons {
    color: #1a5d1a;
}

/* Buttons */
.qm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.qm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qm-btn-primary {
    background: #2563eb;
    color: #fff;
}

.qm-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.qm-btn-secondary {
    background: #6b7280;
    color: #fff;
}

.qm-btn-secondary:hover:not(:disabled) {
    background: #4b5563;
}

.qm-btn-danger {
    background: #dc2626;
    color: #fff;
}

.qm-btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

.qm-btn-discord {
    background: #5865f2;
    color: #fff;
}

.qm-btn-discord:hover {
    background: #4752c4;
    color: #fff;
}

/* Forms */
.qm-queue-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.qm-queue-form h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #111827;
}

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

.qm-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.qm-select,
.qm-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.qm-select:focus,
.qm-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.qm-field-info {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.qm-form-actions {
    margin-top: 24px;
}

.qm-form-actions .qm-btn {
    width: 100%;
}

/* Queue Status */
.qm-queue-status {
    margin-bottom: 20px;
}

.qm-status-card {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.qm-status-icon {
    flex-shrink: 0;
}

.qm-spinner {
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: qm-spin 1s linear infinite;
}

@keyframes qm-spin {
    to { transform: rotate(360deg); }
}

.qm-status-info {
    flex: 1;
}

.qm-status-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.qm-status-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.qm-queue-time {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 8px !important;
}

.qm-status-card .qm-btn-danger {
    flex-shrink: 0;
}

/* Presets */
.qm-presets {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.qm-presets h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #111827;
}

.qm-preset-list {
    margin-bottom: 16px;
}

.qm-preset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
}

.qm-preset-item:last-child {
    margin-bottom: 0;
}

.qm-preset-name {
    font-weight: 500;
    color: #111827;
}

.qm-preset-details {
    font-size: 13px;
    color: #6b7280;
}

.qm-preset-actions {
    display: flex;
    gap: 8px;
}

.qm-preset-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qm-preset-btn:hover {
    background: #f3f4f6;
}

.qm-preset-btn.delete:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.qm-preset-save {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.qm-preset-save .qm-input {
    flex: 1;
}

/* Queue Info */
.qm-queue-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.qm-queue-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qm-queue-info p {
    margin: 0;
    color: #111827;
}

/* Loading */
.qm-loading {
    color: #6b7280;
    font-style: italic;
}

/* Empty state */
.qm-empty {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

/* Responsive */
@media screen and (max-width: 480px) {
    .qm-status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .qm-preset-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .qm-preset-save {
        flex-direction: column;
    }
}
