/* GHype Facebook Video Downloader - Dark Theme */
.ghype-fb-downloader {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    border: 1px solid #2d3746;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ghype-header {
    text-align: center;
    margin-bottom: 30px;
}

.ghype-title {
    color: #00d4ff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ghype-subtitle {
    color: #a0aec0;
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

.ghype-input-section {
    margin-bottom: 25px;
}

.ghype-url-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.ghype-url-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #2d3746;
    border-radius: 10px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ghype-url-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.ghype-download-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.ghype-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.ghype-download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ghype-url-examples {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #718096;
}

.ghype-example-title {
    font-weight: 600;
}

.ghype-example {
    background: rgba(45, 55, 70, 0.5);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #2d3746;
}

/* Progress Section */
.ghype-progress-section {
    margin: 25px 0;
}

.ghype-progress-bar {
    width: 100%;
    height: 8px;
    background: #2d3746;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ghype-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.ghype-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #a0aec0;
}

/* Preview Section */
.ghype-preview-section {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #2d3746;
}

.ghype-preview-header {
    margin-bottom: 15px;
}

.ghype-preview-title {
    color: #00d4ff;
    font-size: 18px;
    margin: 0;
}

.ghype-preview-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ghype-video-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.ghype-thumbnail {
    width: 200px;
    height: 112px;
    object-fit: cover;
    display: block;
}

.ghype-video-info {
    flex: 1;
}

.ghype-video-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ghype-duration {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Download Options */
.ghype-download-options {
    margin: 25px 0;
}

.ghype-options-header {
    margin-bottom: 20px;
}

.ghype-options-title {
    color: #00d4ff;
    font-size: 20px;
    margin: 0;
}

.ghype-format-section {
    margin-bottom: 25px;
}

.ghype-format-title {
    color: #e2e8f0;
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.ghype-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.ghype-format-option {
    background: #1e293b;
    border: 2px solid #2d3746;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ghype-format-option:hover {
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ghype-format-option.active {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.ghype-format-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 8px;
}

.ghype-format-name {
    color: #00d4ff;
    font-weight: 700;
    font-size: 14px;
}

.ghype-format-quality {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.ghype-format-size {
    color: #a0aec0;
    font-size: 12px;
    margin: 0;
}

/* Error Message */
.ghype-error-message {
    background: rgba(254, 178, 178, 0.1);
    border: 1px solid #fc8181;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
}

.ghype-error-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fc8181;
}

.ghype-error-icon {
    font-size: 16px;
}

.ghype-error-text {
    font-size: 14px;
    font-weight: 500;
}

/* Credit Section */
.ghype-credit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2d3746;
}

.ghype-credit-text {
    color: #718096;
    font-size: 12px;
    margin: 0;
}

.ghype-credit-link {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ghype-credit-link:hover {
    color: #0099cc;
    text-decoration: underline;
}

.ghype-insta-icon {
    margin-right: 4px;
}

/* Loading Spinner */
.ghype-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: ghype-spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes ghype-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ghype-fb-downloader {
        padding: 20px;
        margin: 15px 0;
    }
    
    .ghype-url-input-wrapper {
        flex-direction: column;
    }
    
    .ghype-preview-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ghype-thumbnail {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
    }
    
    .ghype-format-grid {
        grid-template-columns: 1fr;
    }
    
    .ghype-title {
        font-size: 24px;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .ghype-fb-downloader {
        padding: 15px;
    }
    
    .ghype-title {
        font-size: 20px;
    }
    
    .ghype-url-input {
        padding: 12px 15px;
    }
    
    .ghype-download-btn {
        padding: 12px 20px;
    }
}