/**
 * UUID Generator Tool Styles
 * Extends main.css with tool-specific styling
 */

.uuid-generator-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Options Container */
.options-container {
    padding: 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.options-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
}

.version-select,
.quantity-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    transition: border-color 0.2s ease;
}

.version-select {
    cursor: pointer;
}

.quantity-input {
    max-width: 150px;
}

.version-select:focus,
.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
}

.format-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.option-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color, #3b82f6);
}

.checkbox-label {
    font-size: 0.95rem;
    color: #1f2937;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.generate-btn,
.btn-copy-all,
.btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.generate-btn {
    background: #3b82f6;
    color: white;
    flex: 1;
}

.generate-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-copy-all {
    background: #10b981;
    color: white;
}

.btn-copy-all:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-clear {
    background: #f3f4f6;
    color: #1f2937;
    border: 2px solid #e5e7eb;
}

.btn-clear:hover {
    background: #e5e7eb;
    border-color: #6b7280;
}

/* Statistics Container */
.stats-container {
    padding: 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.stats-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Output Container */
.output-container {
    margin-top: 1rem;
}

.output-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.uuid-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uuid-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.uuid-item:hover {
    border-color: var(--primary-color, #3b82f6);
}

.uuid-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 0.9rem;
    color: #1f2937;
    word-break: break-all;
    flex: 1;
}

.uuid-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--primary-color, #3b82f6);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.uuid-copy-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

.uuid-copy-btn:active {
    transform: scale(0.95);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--success-color);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.copy-notification.error {
    background: var(--error-color, #ef4444);
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .generate-btn,
    .btn-copy-all,
    .btn-clear {
        width: 100%;
    }

    .copy-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .uuid-text {
        font-size: 0.8rem;
    }
}

/* Dark Theme Support - System Preference */
@media (prefers-color-scheme: dark) {
    .options-container,
    .stats-container {
        background: #1e293b;
        border-color: #334155;
    }

    .options-title,
    .stats-title,
    .output-title {
        color: #e2e8f0;
    }

    .option-label,
    .checkbox-label {
        color: #e2e8f0;
    }

    .version-select,
    .quantity-input {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }

    .uuid-item {
        background: #1e293b;
        border-color: #334155;
    }

    .uuid-item:hover {
        border-color: var(--primary-color, #3b82f6);
    }

    .uuid-text {
        color: #e2e8f0;
    }

    .btn-clear {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }

    .btn-clear:hover {
        background: #334155;
        border-color: #475569;
    }

    .stat-label {
        color: #94a3b8;
    }
}

/* Light Theme Specific (when explicitly set) */
[data-theme="light"] .options-container,
[data-theme="light"] .stats-container {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

[data-theme="light"] .options-title,
[data-theme="light"] .stats-title,
[data-theme="light"] .output-title {
    color: #1f2937;
}

[data-theme="light"] .option-label,
[data-theme="light"] .checkbox-label {
    color: #1f2937;
}

[data-theme="light"] .version-select,
[data-theme="light"] .quantity-input {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
}

[data-theme="light"] .uuid-item {
    background: #ffffff;
    border-color: #e5e7eb;
}

[data-theme="light"] .uuid-item:hover {
    border-color: var(--primary-color, #3b82f6);
}

[data-theme="light"] .uuid-text {
    color: #1f2937;
}

[data-theme="light"] .btn-clear {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #1f2937;
}

[data-theme="light"] .btn-clear:hover {
    background: #e5e7eb;
    border-color: #6b7280;
}

[data-theme="light"] .stat-label {
    color: #6b7280;
}

/* Dark Theme Specific (when explicitly set) */
[data-theme="dark"] .options-container,
[data-theme="dark"] .stats-container {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .options-title,
[data-theme="dark"] .stats-title,
[data-theme="dark"] .output-title {
    color: #e2e8f0;
}

[data-theme="dark"] .option-label,
[data-theme="dark"] .checkbox-label {
    color: #e2e8f0;
}

[data-theme="dark"] .version-select,
[data-theme="dark"] .quantity-input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .uuid-item {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .uuid-item:hover {
    border-color: var(--primary-color, #3b82f6);
}

[data-theme="dark"] .uuid-text {
    color: #e2e8f0;
}

[data-theme="dark"] .btn-clear {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .btn-clear:hover {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .stat-label {
    color: #94a3b8;
}
