* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FFB3BA 0%, #FF9AA2 100%);
    min-height: 100vh;
    padding: 0;
    color: #333;
}

/* Taskbar Navigation */
.taskbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    margin-bottom: 20px;
}

.taskbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.taskbar-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #FF9AA2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.taskbar-logo i {
    font-size: 1.2em;
}

.taskbar-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.taskbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.taskbar-item:hover {
    background: rgba(255, 154, 162, 0.1);
    color: #FF9AA2;
    transform: translateY(-2px);
}

.taskbar-item.active {
    background: linear-gradient(135deg, #FFB3BA 0%, #FF9AA2 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 154, 162, 0.3);
}

.taskbar-item.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 154, 162, 0.4);
}

.taskbar-item i {
    font-size: 1em;
}

/* Container padding */
.container {
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px 0;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h1 i {
    margin-right: 15px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Upload Tabs */
.upload-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 1em;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #FF9AA2;
}

.tab-btn.active {
    color: #FF9AA2;
    border-bottom-color: #FF9AA2;
    font-weight: 600;
}

.upload-tab-content {
    display: none;
}

.upload-tab-content.active {
    display: block;
}

/* Upload Form */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.upload-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-label {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-label i {
    color: #FF9AA2;
}

.upload-box {
    border: 3px dashed #FF9AA2;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff5f7;
}

.upload-box:hover {
    background: #ffeef1;
    border-color: #FFB3BA;
    transform: translateY(-2px);
}

.upload-box i {
    font-size: 3em;
    color: #FF9AA2;
    margin-bottom: 15px;
    display: block;
}

.upload-box p {
    font-size: 1em;
    color: #666;
    margin: 0;
}

.upload-box input[type="file"] {
    display: none;
}

/* URL Input */
.url-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: #FF9AA2;
    box-shadow: 0 0 0 3px rgba(255, 154, 162, 0.1);
}

/* Preview Box */
.preview-box {
    margin-top: 10px;
    min-height: 100px;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

.preview-box.has-image {
    display: block;
}

.preview-box img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

/* Preview Multiple Images */
.preview-multiple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-multiple-item {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.preview-multiple-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.preview-multiple-item .preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 0.8em;
    text-align: center;
}

.preview-multiple-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

.preview-multiple-item .remove-btn:hover {
    background: rgba(255, 0, 0, 1);
}

/* Upload Button */
.btn-primary {
    background: linear-gradient(135deg, #FFB3BA 0%, #FF9AA2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 154, 162, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-progress {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFB3BA, #FF9AA2);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 15px;
}

/* Gallery */
.gallery-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.gallery-header h2 {
    color: #333;
    font-size: 1.8em;
}

.gallery-header h2 i {
    margin-right: 10px;
    color: #FF9AA2;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: #FF9AA2;
    color: white;
}

.btn-secondary:hover {
    background: #FFB3BA;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 154, 162, 0.4);
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.loading {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 1.2em;
    grid-column: 1 / -1;
}

.loading i {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
    color: #FF9AA2;
}

/* Image Card */
.image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #f8f9fa;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.image-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
    border-radius: 8px;
}

.image-card .eye-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.image-card .eye-icon:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.image-card .eye-icon i {
    font-size: 1.3em;
    color: #FF9AA2;
}

.image-card .eye-icon.active {
    background: #FF9AA2;
}

.image-card .eye-icon.active i {
    color: white;
}

.image-card .delete-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 77, 77, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    color: white;
    font-size: 1.1em;
    opacity: 0;
}

.image-card:hover .delete-btn {
    opacity: 1;
}

.image-card .delete-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

.image-card .image-info {
    display: none; /* Ẩn thông tin ảnh */
}

/* Negative/Invert Effect - Không cần CSS filter nữa vì dùng ảnh negative thực sự */
.image-card.negative {
    /* Có thể thêm style khác nếu cần */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.modal-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2em;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
}

.modal-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    width: 100%;
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
    color: #ddd;
}

.empty-state p {
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 768px) {
    .taskbar-container {
        padding: 12px 15px;
    }
    
    .taskbar-logo {
        font-size: 1.2em;
    }
    
    .taskbar-item {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .taskbar-item span {
        display: none;
    }
    
    .taskbar-item i {
        font-size: 1.2em;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .gallery {
        gap: 15px;
    }
    
    .image-card img {
        max-height: 400px;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 35px;
    }
    
    .modal-nav {
        padding: 0 15px;
    }
}

