/* Tool-specific styles */

/* Tool Container */
.tool-container {
    padding-top: 80px; /* Account for fixed header */
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: rgba(181, 51, 255, 0.05);
}

.upload-area.drag-over {
    background-color: rgba(181, 51, 255, 0.1);
    border-color: var(--primary-dark);
    transform: scale(1.02);
}

.upload-area i {
    color: var(--primary-color);
}

/* File List */
.list-group-item {
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(181, 51, 255, 0.05);
}

.list-group-item .btn-outline-danger {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.list-group-item:hover .btn-outline-danger {
    opacity: 1;
}

/* Progress Bar */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(181, 51, 255, 0.1);
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Options */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Tool Description */
.tool-description {
    line-height: 1.8;
}

.tool-description h2, 
.tool-description h3 {
    color: var(--primary-color);
}

/* Mode Switch */
.mode-switch .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mode-switch .btn-outline-primary:hover,
.mode-switch .btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
}

.actions button {
    min-width: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-container {
        padding-top: 60px;
    }

    .actions {
        flex-direction: column;
    }

    .actions button {
        width: 100%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tool-interface,
    .tool-description {
        background-color: #2c2c2c !important;
        color: #ffffff;
    }

    .upload-area {
        background-color: rgba(181, 51, 255, 0.1);
    }

    .list-group-item {
        background-color: #333333;
        border-color: #444444;
        color: #ffffff;
    }

    .list-group-item:hover {
        background-color: #444444;
    }

    .text-muted {
        color: #aaaaaa !important;
    }
}

/* Color Picker Tool Styles */
.color-box {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-box:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#colorPreview {
    transition: background-color 0.3s ease;
}

.form-control-color {
    width: 100%;
    height: 38px;
    padding: 0.375rem;
}

.form-control-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.form-control-color::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.form-control-color::-moz-color-swatch {
    border: none;
    border-radius: 4px;
}

.progress {
    height: 24px;
    background-color: #f8f9fa;
}

.progress-bar {
    transition: width 0.3s ease;
}

.toast-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 4px;
    color: white;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

.toast-warning {
    background-color: #ffc107;
    color: #000;
}

.toast-info {
    background-color: #17a2b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .color-box {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .color-box {
        width: 40px;
        height: 40px;
    }
}

/* QR Code Generator Styles */
#qrOutput {
    min-height: 256px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

#qrOutput canvas {
    max-width: 100%;
    height: auto;
}