/* Dashboard Components - Reusable Components Following LAYOUT_DASHBOARD.md */

/* Manager Cards - 4 Cards Section */
.managers-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.manager-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.manager-card:hover {
    border-color: var(--primary-pink);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 158, 199, 0.2);
}

.manager-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--primary-pink);
}

.manager-card-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.manager-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Section Cards */
.section-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon svg {
    position: absolute;
    left: 0.75rem;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
}

.input-with-icon .form-input {
    padding-left: 2.5rem;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 1;
    min-width: 120px;
}

/* Toggle Button (Disabled/Enabled) */
.toggle-button {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.toggle-button-left {
    flex: 1;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.875rem;
}

.toggle-button-right {
    flex: 1;
    padding: 0.75rem;
    background: rgba(220, 38, 38, 0.3);
    border: 2px solid rgba(220, 38, 38, 0.5);
    border-radius: 8px;
    color: rgba(255, 182, 193, 1);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.toggle-button.active .toggle-button-left {
    background: rgba(255, 158, 199, 0.2);
    border-color: var(--primary-pink);
    color: var(--primary-pink);
}

.toggle-button.active .toggle-button-right {
    background: rgba(255, 158, 199, 0.2);
    border-color: var(--primary-pink);
    color: var(--primary-pink);
}

/* Large Toggle Button */
.toggle-button-large {
    width: 100%;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.3);
    border: 2px solid var(--primary-pink);
    border-radius: 12px;
    color: rgba(255, 182, 193, 1);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-button-large.active {
    background: rgba(255, 158, 199, 0.2);
    color: var(--primary-pink);
}

/* Note Box */
.note-box {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.note-box-icon {
    width: 24px;
    height: 24px;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.note-box-text {
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.6;
    flex: 1;
}

/* Badge Grid - 3 columns × 8 rows */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.badge-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.badge-card:hover {
    border-color: var(--primary-pink);
    box-shadow: 0 5px 15px rgba(255, 158, 199, 0.2);
}

.badge-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
}

.badge-card-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.badge-card-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.badge-card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.badge-card-action {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge-card-action.claim,
.badge-card-action.purchase,
.badge-card-action.report,
.badge-card-action.donate,
.badge-card-action.boost,
.badge-card-action.suggest,
.badge-card-action.contribute,
.badge-card-action.participate,
.badge-card-action.invite,
.badge-card-action.gift {
    background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
    color: white;
}

.badge-card-action.not-available {
    background: rgba(220, 38, 38, 0.3);
    color: rgba(255, 182, 193, 1);
    cursor: not-allowed;
}

/* Platform Integration Grid - 3 columns × 7 rows */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.platform-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-card:hover {
    border-color: var(--primary-pink);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 158, 199, 0.2);
}

.platform-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    filter: drop-shadow(0 0 8px currentColor);
}

.platform-card-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.platform-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Theme Selection Cards - 4 cards horizontal */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.theme-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-card.selected {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 2px var(--primary-pink);
}

.theme-card-checkmark {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: var(--primary-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-card.selected .theme-card-checkmark {
    opacity: 1;
}

.theme-card-preview {
    width: 100%;
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.theme-card-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.theme-card-preview-line {
    width: 80%;
    height: 2px;
    background: var(--text-secondary);
}

.theme-card-preview-box {
    width: 60%;
    height: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}

.theme-card-name {
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Decoration Grid - 4 rows × 6 columns */
.decoration-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.decoration-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.decoration-card:hover {
    border-color: var(--primary-pink);
    transform: translateY(-3px);
}

.decoration-card-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.decoration-card-name {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Template Grid - 2 columns × 3 rows */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.template-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: var(--primary-pink);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 158, 199, 0.2);
}

.template-card-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.template-card-content {
    padding: 1.5rem;
}

.template-card-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.template-card-author {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.template-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.template-card-tag {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 158, 199, 0.2);
    border: 1px solid var(--primary-pink);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary-pink);
}

.template-card-tag.secondary {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--glass-border);
    color: var(--text-secondary);
}

.template-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.template-card-action {
    width: 100%;
}

/* Asset Grid */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.asset-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.asset-card:hover {
    border-color: var(--primary-pink);
    transform: translateY(-3px);
}

.asset-card-preview {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.asset-card-type {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.asset-card-content {
    padding: 1rem;
}

.asset-card-uploader {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.asset-card-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.asset-card-downloads {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.asset-card-actions {
    display: flex;
    gap: 0.5rem;
}

.asset-card-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.asset-card-action.view {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.asset-card-action.select {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.asset-card-action.download {
    background: rgba(255, 158, 199, 0.2);
    color: var(--primary-pink);
}

.asset-card-action:hover {
    transform: scale(1.1);
}

/* Link List */
.link-list {
    margin-top: 1.5rem;
}

.link-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.link-item:hover {
    border-color: var(--primary-pink);
}

.link-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.link-item-icon {
    width: 32px;
    height: 32px;
}

.link-item-details {
    flex: 1;
}

.link-item-platform {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.link-item-url {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.link-item-actions {
    display: flex;
    gap: 0.5rem;
}

.link-item-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.link-item-action:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Slider Styles - Following LAYOUT_DASHBOARD.md */
.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    outline: none;
    position: relative;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-pink);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(255, 158, 199, 0.3);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(255, 158, 199, 0.5);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-pink);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(255, 158, 199, 0.3);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(255, 158, 199, 0.5);
}

.slider-value {
    min-width: 50px;
    text-align: right;
    color: var(--primary-pink);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Custom Dropdown - Following LAYOUT_DASHBOARD.md */
.dropdown-wrapper {
    position: relative;
}

.dropdown-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ff9ec7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    transition: all 0.3s ease;
}

.dropdown-select:hover {
    border-color: var(--primary-pink);
}

.dropdown-select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 158, 199, 0.3);
}

/* Color Picker Wrapper */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    background: var(--text-primary);
    flex-shrink: 0;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    overflow: hidden;
}

.color-swatch::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-swatch::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-swatch::-moz-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.color-input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 158, 199, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .managers-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .badge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .managers-section {
        grid-template-columns: 1fr;
    }
    
    .theme-grid {
        grid-template-columns: 1fr;
    }
    
    .badge-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .decoration-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
}

