/* Image Share Pro - Frontend Styles */

.isp-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.isp-header {
    text-align: center;
    margin-bottom: 30px;
}

.isp-title {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.isp-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.isp-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.isp-upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: #f8f9ff;
}

.isp-upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.isp-upload-area.dragover {
    border-color: #764ba2;
    background: #e8ebff;
    transform: scale(1.02);
}

.isp-upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.isp-upload-text {
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.isp-upload-subtext {
    color: #999;
    font-size: 14px;
}

#ispFileInput {
    display: none;
}

.isp-preview-container {
    margin: 20px 0;
}

.isp-preview-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.isp-options {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.isp-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.isp-option-group label {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.isp-option-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.isp-option-group select:focus {
    outline: none;
    border-color: #667eea;
}

.isp-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.isp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.isp-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.isp-loading {
    text-align: center;
    padding: 20px;
}

.isp-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: isp-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes isp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.isp-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 15px;
}

.isp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.isp-result-container {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
    border: 2px solid #667eea;
}

.isp-result-link {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.isp-result-link input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
}

.isp-btn-copy {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.isp-btn-copy:hover {
    background: #764ba2;
}

.isp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.isp-stat-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.isp-stat-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.isp-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.isp-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: isp-slidein 0.3s ease;
}

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

.isp-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.isp-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .isp-container {
        padding: 25px;
    }
    
    .isp-title {
        font-size: 24px;
    }
    
    .isp-stats {
        grid-template-columns: 1fr;
    }
    
    .isp-result-link {
        flex-direction: column;
    }
}

/* RTL Support */
[dir="rtl"] .isp-container {
    direction: rtl;
}
