/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.img2url-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Container */
.img2url-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 100vh;
}

/* Hero Section - Compact */
.img2url-hero {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    padding: 15px 10px;
    text-align: center;
    position: relative;
}

.img2url-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.img2url-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 1.2;
}

.img2url-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.img2url-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.stat-item i {
    font-size: 1rem;
}

/* Card Styles */
.img2url-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 30px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f5;
}

.card-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-sub {
    color: #718096;
    font-size: 0.95rem;
}

.url-count {
    background: #4361ee;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed #4361ee;
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    cursor: pointer;
}

.upload-zone:hover {
    background: #edf2ff;
    border-color: #3a0ca3;
}

.upload-zone.drag-over {
    background: #e0e7ff;
    border-color: #3a0ca3;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 4rem;
    color: #4361ee;
    margin-bottom: 20px;
}

.upload-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2d3748;
}

.upload-text p {
    color: #718096;
    margin-bottom: 25px;
}

.upload-btn {
    background: #4361ee;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #3a0ca3;
    transform: translateY(-2px);
}

.file-input-hidden {
    display: none;
}

.format-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.format-badge {
    background: #e9ecef;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

/* File List */
.file-list-container {
    margin-top: 30px;
}

.file-list-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.file-icon {
    color: #4361ee;
    font-size: 1.2rem;
}

.file-name {
    font-weight: 500;
    color: #2d3748;
}

.file-size {
    color: #718096;
    font-size: 0.9rem;
}

.remove-file {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.remove-file:hover {
    color: #c53030;
}

/* Progress Bar */
.progress-container {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2d3748;
}

.progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4361ee, #3a0ca3);
    width: 0%;
    transition: width 0.3s ease;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.action-btn {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background: #4361ee;
    color: white;
}

.primary-btn:hover {
    background: #3a0ca3;
    transform: translateY(-2px);
}

.secondary-btn {
    background: #e9ecef;
    color: #495057;
}

.secondary-btn:hover {
    background: #dee2e6;
}

/* Results Section */
.results-container {
    min-height: 200px;
}

.empty-results {
    text-align: center;
    padding: 50px 20px;
    color: #718096;
}

.empty-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #cbd5e0;
}

.url-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.url-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.url-details {
    flex: 1;
}

.url-text {
    font-family: monospace;
    background: white;
    padding: 10px;
    border-radius: 5px;
    margin: 8px 0;
    word-break: break-all;
    border: 1px solid #e9ecef;
}

.url-actions {
    display: flex;
    gap: 10px;
}

.url-copy-btn, .url-delete-btn {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.url-copy-btn {
    background: #48bb78;
    color: white;
}

.url-copy-btn:hover {
    background: #38a169;
}

.url-delete-btn {
    background: #fed7d7;
    color: #c53030;
}

.url-delete-btn:hover {
    background: #feb2b2;
}

.url-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.url-action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #f1f3f5;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.url-action-btn:hover:not(:disabled) {
    background: #e9ecef;
}

.url-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-container {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #2d3748;
}

.modal-content {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.history-thumb {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

.history-details {
    flex: 1;
}

.history-url {
    font-size: 0.9rem;
    color: #718096;
    word-break: break-all;
    margin-top: 5px;
}

.history-actions {
    display: flex;
    gap: 10px;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2d3748;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-notification.show {
    display: flex;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4361ee;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s;
}

.floating-btn:hover {
    background: #3a0ca3;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .img2url-wrapper {
        padding: 10px;
    }
    
    .img2url-hero {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .img2url-badge {
        padding: 5px 10px;
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .img2url-title {
        font-size: 1.5rem;
        gap: 8px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .img2url-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .img2url-stats {
        gap: 15px;
        margin-top: 15px;
    }
    
    .stat-item {
        font-size: 0.8rem;
        gap: 6px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-item i {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .img2url-card {
        margin: 15px;
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .upload-zone {
        padding: 30px 20px;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-text h3 {
        font-size: 1.3rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .url-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .url-preview {
        width: 100%;
        height: 150px;
    }
    
    .url-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .img2url-hero {
        padding: 15px 10px;
    }
    
    .img2url-badge {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .img2url-title {
        font-size: 1.3rem;
        gap: 5px;
    }
    
    .img2url-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .img2url-stats {
        gap: 10px;
        margin-top: 12px;
    }
    
    .stat-item {
        font-size: 0.75rem;
    }
    
    .upload-zone {
        padding: 25px 15px;
    }
    
    .upload-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .format-badges {
        flex-wrap: wrap;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .file-info {
        width: 100%;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
    }
}