.upload-area {
    border: 2px dashed #e9ecef;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    position: relative;
    overflow: hidden; /* Hide native file input */
}
.upload-area:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}
.upload-area input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.upload-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 10px;
}
.upload-text {
    margin-top: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}
.upload-hint {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    margin-top: 5px;
}

.file-info-container {
    margin-top: 20px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.file-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.file-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.file-size, .file-dimensions {
    font-size: 0.85rem;
    color: #666;
}

.exif-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.exif-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active {
    background: #fff;
    color: #007bff;
    border-color: #007bff;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #007bff;
}

.exif-content {
    min-height: 200px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.exif-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.exif-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.exif-group h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.exif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.exif-item:last-child {
    border-bottom: none;
}

.exif-label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.exif-value {
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

.no-exif-container {
    text-align: center;
    background: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.no-exif-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-exif-container h3 {
    color: #666;
    margin-bottom: 15px;
}

.no-exif-container p {
    color: #888;
    margin-bottom: 20px;
}

.no-exif-container ul {
    text-align: left;
    display: inline-block;
    margin: 0;
    padding-left: 20px;
}

.no-exif-container li {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.preview-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    margin-top: 20px;
}

.image-preview {
    max-width: 100%;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

#previewImage {
    max-width: 100%;
    height: auto;
    display: block;
}

.info-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    .upload-area {
        padding: 20px;
        min-height: 120px;
    }
    .upload-icon {
        font-size: 2.5rem;
    }
    .upload-text {
        font-size: 1rem;
    }
    .upload-hint {
        font-size: 0.8rem;
    }
    .file-info-container {
        margin-top: 15px;
        padding: 12px;
    }
    .file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .file-thumb {
        width: 50px;
        height: 50px;
    }
    .file-meta {
        width: 100%;
    }
    .file-name {
        font-size: 0.9rem;
    }
    .file-size, .file-dimensions {
        font-size: 0.75rem;
    }
    #removeFileBtn {
        width: 100%;
        margin-top: 10px;
    }
    .exif-container, .preview-container, .info-card, .no-exif-container {
        padding: 15px;
        margin-top: 15px;
    }
    .exif-tabs {
        gap: 2px;
    }
    .tab-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
    .exif-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .exif-group {
        padding: 12px;
    }
    .exif-group h4 {
        font-size: 15px;
    }
    .exif-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 6px 0;
    }
    .exif-value {
        text-align: left;
        margin-left: 0;
        word-break: break-word;
    }
    .no-exif-icon {
        font-size: 3rem;
    }
    .image-preview {
        max-height: 300px;
        overflow: hidden;
    }
}