/* Admin Styles for Discko */

.discko-admin-wrap {
    max-width: 1200px;
    margin: 20px 0;
}

.discko-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Section Header with Number */
.discko-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.discko-section-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #ff6b35;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-top: 2px;
}

.discko-section-titles {
    flex: 1;
}

.discko-section h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.discko-section h3 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.discko-section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

.discko-admin-header {
    background: #f5f5f5;
    border-left: 4px solid #6C5CE7;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.discko-admin-header p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.discko-settings-table {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.discko-section-title {
    background: #fafafa;
    padding: 15px 10px !important;
    border-bottom: 2px solid #6C5CE7;
}

.discko-section-title h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.required {
    color: #d63638;
}

/* Icon Upload */
.discko-icon-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.discko-icon-preview {
    width: 80px;
    height: 80px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.discko-icon-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
}

.discko-upload-icon-btn,
.discko-remove-icon-btn {
    margin-top: 0 !important;
}

/* Footer */
.discko-admin-footer {
    background: #e7f5ff;
    border-left: 4px solid #1e88e5;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.discko-admin-footer p {
    margin: 0;
    font-size: 13px;
    color: #333;
}

/* Mode Selection Cards */
.discko-mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.discko-mode-card {
    position: relative;
    border: none;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    display: block;
    overflow: visible;
}

.discko-mode-card:hover {
    transform: translateY(-2px);
}

.discko-mode-card:hover .discko-mode-preview,
.discko-mode-card:hover .discko-mode-info {
    border-color: #ff8c61;
}

.discko-mode-card.selected .discko-mode-preview,
.discko-mode-card.selected .discko-mode-info {
    border-color: #ff6b35;
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.12);
}

.discko-mode-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Preview Section */
.discko-mode-preview {
    background: #fff;
    padding: 24px;
    margin-bottom: 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: all 0.3s ease;
}

.discko-preview-container {
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.discko-preview-content {
    position: relative;
    min-height: 160px;
}

/* Skeleton Bars */
.discko-bar {
    background: linear-gradient(90deg, #f5f5f5 0%, #ececec 50%, #f5f5f5 100%);
    background-size: 200% 100%;
    animation: shimmer 2.5s ease-in-out infinite;
    border-radius: 4px;
    height: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.discko-bar-small {
    width: 30px;
}

.discko-bar-medium {
    width: 60px;
}

.discko-bar-large {
    width: 100%;
    height: 12px;
    margin-bottom: 12px;
}

.discko-bar-title {
    width: 120px;
    height: 10px;
    margin-bottom: 12px;
}

.discko-bar-full {
    width: 100%;
    margin-bottom: 6px;
}

.discko-bar-85 {
    width: 85%;
    margin-bottom: 6px;
}

.discko-bar-80 {
    width: 80%;
    margin-bottom: 6px;
}

.discko-bar-75 {
    width: 75%;
    margin-bottom: 6px;
}

.discko-bar-input {
    width: 100%;
    height: 10px;
    margin-bottom: 8px;
}

.discko-bar-button {
    width: 80px;
    height: 12px;
    background: #ff6b35;
    border-radius: 6px;
    margin: 0 auto;
}

.discko-bar-button-small {
    width: 60px;
    height: 10px;
    background: #ff6b35;
    border-radius: 6px;
    margin-top: 8px;
}

/* Preview Header */
.discko-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.discko-preview-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Iframe Preview Specific */
.discko-iframe-preview {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}

.discko-iframe-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #fff;
    padding: 0 6px;
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

.discko-iframe-content {
    padding-top: 8px;
}

.discko-iframe-inputs {
    margin: 12px 0;
}

/* Button Mode Preview */
.discko-preview-main {
    margin-bottom: 16px;
    padding: 16px 0;
}

.discko-preview-lines {
    margin-top: 12px;
}

/* Floating Button Preview */
.discko-floating-btn-preview {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.discko-float-button {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    animation: float 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.discko-bubble-preview {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 140px;
    animation: fadeInBubble 2s ease-in-out infinite;
}

@keyframes fadeInBubble {
    0%, 100% {
        opacity: 0;
        transform: translateX(4px);
    }
    40%, 60% {
        opacity: 1;
        transform: translateX(0);
    }
}

.discko-bubble-content {
    font-size: 9px;
}

.discko-bubble-arrow {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #fff;
}

/* Mode Info Section */
.discko-mode-info {
    padding: 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: all 0.3s ease;
}

.discko-mode-card.selected .discko-mode-info {
    background: #fffaf8;
}

.discko-mode-card.selected .discko-mode-preview {
    background: #fffaf8;
}

.discko-mode-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    border: none;
    padding: 0;
}

.discko-mode-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Info Box */
.discko-info-box {
    background: #e7f5ff;
    border-left: 4px solid #1e88e5;
    padding: 16px 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.discko-info-box h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
}

.discko-info-box ol {
    margin: 0;
    padding-left: 20px;
}

.discko-info-box li {
    margin-bottom: 8px;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
}

.discko-info-box code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .discko-icon-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .discko-section-title h2 {
        font-size: 16px;
    }

    .discko-mode-cards {
        grid-template-columns: 1fr;
    }

    .discko-section {
        padding: 16px;
    }
}
