/* Clean Modern Design - img.techbag.app */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --bg-gray-dark: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gray);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Container */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.text-center h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.text-center .lead {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

/* Cards */
.glass-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.glass-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

/* Drag and Drop Zone */
#dropZone {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px dashed var(--border-color);
    background: var(--bg-gray-dark);
}

#dropZone.drag-over {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    border-style: solid;
}

.drop-zone-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.drop-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drop-zone-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.drop-zone-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.drop-zone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: var(--radius-lg);
}

.drop-overlay-content {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.btn-web3-primary {
    background: var(--primary-color);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.btn-web3-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-web3-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-web3-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.btn-web3-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.btn-web3-outline.copied {
    border-color: var(--success-color);
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.btn-web3-icon {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.btn-web3-icon:hover {
    background: var(--bg-gray-dark);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-web3-icon.copied {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

/* Card Headers */
.card-header-web3 {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.card-header-web3 h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body-web3 {
    padding: 0;
}

/* Preview Cards */
.preview-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.preview-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.preview-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--bg-gray-dark);
}

.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    font-size: 0.875rem;
}

.preview-card:hover .btn-remove-image {
    opacity: 1;
}

.btn-remove-image:hover {
    background: var(--error-color);
    transform: scale(1.1);
}

.preview-info {
    padding: 0.875rem;
}

.preview-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.preview-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Progress Bar */
.progress-web3 {
    width: 100%;
    height: 8px;
    background: var(--bg-gray-dark);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-web3 {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 1;
}

/* Link Items */
.link-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.link-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.link-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.link-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-gray-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-group-web3 {
    display: flex;
    gap: 0.5rem;
}

.form-control-web3 {
    flex: 1;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control-web3:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Badge */
.badge {
    padding: 0.25em 0.625em;
    font-weight: 500;
    border-radius: 4px;
    font-size: 0.75rem;
}

.bg-web3-accent {
    background: var(--primary-color);
    color: white;
}

/* Alert */
.alert-web3-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: none;
    margin-bottom: 1.5rem;
}

.alert-web3-danger.show {
    display: block;
}

.alert-web3-danger .btn-close {
    filter: opacity(0.6);
}

.alert-web3-danger .btn-close:hover {
    filter: opacity(1);
}

/* Responsive */
@media (max-width: 768px) {
    .text-center h1 {
        font-size: 2rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .drop-icon {
        font-size: 2.5rem;
    }
    
    .logo-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
    
    .link-header {
        flex-direction: column;
    }
    
    .input-group-web3 {
        flex-direction: column;
    }
    
    .btn-web3-icon {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.glass-card {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

