/* Pengunduh TikTok - Main Styles */

:root {
    --primary-color: #25f4ee;
    --primary-dark: #000000;
    --secondary-color: #fe2c55;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

.pengunduh-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 20px 0;
    padding: 20px;
}

.pengunduh-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
}

.pengunduh-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Header Styles */
.pengunduh-header {
    display: flex;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 2px solid #f0f0f0;
    gap: 16px;
}

.pengunduh-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.video-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stories-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.mp3-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.pengunduh-header h3 {
    margin: 0;
    font-size: 22px;
    color: #111827;
    font-weight: 600;
}

/* Body Styles */
.pengunduh-body {
    padding: 24px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pengunduh-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    font-family: 'Courier New', monospace;
}

.pengunduh-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pengunduh-button {
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.pengunduh-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.pengunduh-button:active {
    transform: translateY(0);
}

.pengunduh-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.pengunduh-button.loading .button-text {
    display: none;
}

.pengunduh-button.loading .spinner {
    display: inline-block;
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Result Styles */
.pengunduh-result {
    margin-bottom: 20px;
    min-height: 0;
    transition: var(--transition);
}

.result-alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-alert.success {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #065f46;
}

.result-alert.error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

.result-alert.info {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e40af;
}

.result-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.result-value {
    color: #6b7280;
    font-size: 14px;
    max-width: 50%;
    text-align: right;
    word-break: break-word;
}

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

/* Info Box Styles */
.pengunduh-info {
    background: #f3f4f6;
    border-left: 4px solid #667eea;
    padding: 16px;
    border-radius: 6px;
}

.pengunduh-info p {
    margin: 8px 0;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pengunduh-info p:first-child {
    margin-top: 0;
}

.pengunduh-info p:last-child {
    margin-bottom: 0;
}

/* Specific Color Schemes */
.pengunduh-video .pengunduh-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pengunduh-video .pengunduh-info {
    border-left-color: #667eea;
}

.pengunduh-stories .pengunduh-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pengunduh-stories .pengunduh-info {
    border-left-color: #f093fb;
}

.pengunduh-mp3 .pengunduh-button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.pengunduh-mp3 .pengunduh-info {
    border-left-color: #4facfe;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pengunduh-container {
        padding: 15px;
    }
    
    .pengunduh-card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .pengunduh-header {
        padding: 16px;
        flex-wrap: wrap;
    }
    
    .pengunduh-body {
        padding: 16px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .pengunduh-input {
        min-width: 100%;
    }
    
    .pengunduh-button {
        width: 100%;
        justify-content: center;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-value {
        max-width: 100%;
        text-align: left;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .pengunduh-container {
        padding: 10px;
    }
    
    .pengunduh-header h3 {
        font-size: 18px;
    }
    
    .pengunduh-icon {
        width: 40px;
        height: 40px;
    }
    
    .pengunduh-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Loading State */
.pengunduh-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #6b7280;
}

.pengunduh-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Accessibility */
.pengunduh-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.pengunduh-input:focus {
    outline: none;
}

.pengunduh-card,.pengunduh-container{background:#fff!important;box-shadow:none!important;padding:0}
.pengunduh-header,.help-section,h3,.pengunduh-icon{display:none!important}
.pengunduh-input{border:2px solid #8b0000;color:#8b0000;background:#fff}
.pengunduh-button{background:#c00000!important;border:2px solid #c00000}

.help-section,.pengunduh-header,h3,.features-box,.pengunduh-icon{display:none!important}
.pengunduh-container,.pengunduh-card{background:#fff!important;box-shadow:none!important}
.pengunduh-input{border:2px solid #5a0000!important;color:#5a0000!important}
.pengunduh-button{background:#7a0000!important;border-color:#7a0000!important}
