/* Tool Specific Styles */
.tool-main {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tool-container {
    width: 100%;
    max-width: 800px;
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tool-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.tool-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.upload-area {
    border: 2px dashed var(--accent-color);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(76, 201, 240, 0.05);
}

.upload-area:hover, .upload-area.dragover {
    background: rgba(76, 201, 240, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.01);
}

.upload-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: var(--primary-color);
}

.upload-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.preview-area {
    animation: fadeIn 0.5s ease;
}

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

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--surface-border);
}

.preview-header h3 {
    font-size: 1.3rem;
}

.icon-btn {
    background: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: #ff5f56;
    color: white;
    transform: rotate(90deg);
}

.image-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    max-height: 400px;
    overflow: hidden;
}

#image-preview {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.action-area {
    display: flex;
    justify-content: center;
}

.generate-btn {
    padding: 16px 36px;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
}

@media (max-width: 600px) {
    .tool-main { padding-top: 100px; padding-left: 20px; padding-right: 20px; }
    .tool-card { padding: 25px; }
    .upload-area { padding: 40px 15px; }
    .tool-title { font-size: 2.2rem; }
}
