/* ========================================
   Codetude UUID Generator - Estilos
   ======================================== */

:root {
    --uuid-primary: #10b981;
    --uuid-success: #10b981;
    --uuid-light-bg: #ffffff;
    --uuid-light-surface: #f8fafc;
    --uuid-light-border: #e2e8f0;
    --uuid-light-text: #1e293b;
    --uuid-light-text-secondary: #64748b;
    --uuid-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark-mode {
    --uuid-light-bg: #1e293b;
    --uuid-light-surface: #0f172a;
    --uuid-light-border: #334155;
    --uuid-light-text: #e2e8f0;
    --uuid-light-text-secondary: #94a3b8;
    --uuid-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Container */
.codetude-uuid-generator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Seções */
.uuid-section {
    background: var(--uuid-light-bg);
    border: 1px solid var(--uuid-light-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--uuid-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uuid-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Headers */
.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--uuid-light-text);
    margin: 0 0 10px 0;
}

.section-header h2 .icon {
    width: 28px;
    height: 28px;
    color: var(--uuid-primary);
    stroke-width: 2;
}

.section-description {
    color: var(--uuid-light-text-secondary);
    margin: 0;
    font-size: 15px;
}

/* Controles */
.generator-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.control-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--uuid-light-text);
}

.control-group select,
.control-group input[type="number"] {
    padding: 10px 14px;
    border: 2px solid var(--uuid-light-border);
    border-radius: 8px;
    font-size: 15px;
    background: var(--uuid-light-surface);
    color: var(--uuid-light-text);
    transition: border-color 0.2s ease;
}

.control-group select:focus,
.control-group input:focus {
    outline: none;
    border-color: var(--uuid-primary);
}

/* Opções de formato */
.format-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px;
    background: var(--uuid-light-surface);
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--uuid-primary);
}

.checkbox-label span {
    font-size: 14px;
    font-weight: 500;
    color: var(--uuid-light-text);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.btn-primary {
    background: var(--uuid-primary);
    color: white;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
}

.btn-secondary {
    background: var(--uuid-light-surface);
    color: var(--uuid-light-text);
    border: 1px solid var(--uuid-light-border);
}

.btn-secondary:hover {
    background: var(--uuid-light-border);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Resultados */
.uuid-results {
    margin-top: 25px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--uuid-light-text);
    margin: 0;
}

.results-actions {
    display: flex;
    gap: 10px;
}

.uuid-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uuid-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--uuid-light-surface);
    border: 2px solid var(--uuid-light-border);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--uuid-light-text);
    transition: all 0.2s ease;
    cursor: pointer;
}

.uuid-item:hover {
    border-color: var(--uuid-primary);
    background: var(--uuid-primary);
    color: white;
    transform: translateX(4px);
}

.uuid-item .copy-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    flex-shrink: 0;
}

.uuid-item:hover .copy-icon {
    opacity: 1;
}

.uuid-item.copied {
    border-color: var(--uuid-success);
    background: var(--uuid-success);
    color: white;
}

/* Info Cards */
.info-content {
    display: grid;
    gap: 20px;
}

.info-card {
    padding: 20px;
    background: var(--uuid-light-surface);
    border-left: 4px solid var(--uuid-primary);
    border-radius: 8px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--uuid-light-text);
    margin: 0 0 12px 0;
}

.info-card p {
    color: var(--uuid-light-text-secondary);
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.info-card ul {
    margin: 10px 0;
    padding-left: 25px;
    color: var(--uuid-light-text-secondary);
    line-height: 1.8;
}

.info-card code {
    background: var(--uuid-light-border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--uuid-primary);
}

/* Code Examples */
.code-examples {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.code-example {
    background: var(--uuid-light-bg);
    border: 1px solid var(--uuid-light-border);
    border-radius: 8px;
    padding: 15px;
}

.code-example strong {
    display: block;
    color: var(--uuid-primary);
    margin-bottom: 10px;
    font-size: 14px;
}

.code-example pre {
    margin: 0;
    padding: 12px;
    background: #1e293b;
    border-radius: 6px;
    overflow-x: auto;
}

.code-example code {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.dark-mode .code-example pre {
    background: #0f172a;
}

/* Toast */
.uuid-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--uuid-light-text);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--uuid-shadow);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uuid-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.uuid-toast svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Responsivo */
@media (max-width: 768px) {
    .codetude-uuid-generator {
        padding: 15px;
    }
    
    .uuid-section {
        padding: 20px;
    }
    
    .control-row {
        flex-direction: column;
    }
    
    .control-group {
        min-width: 100%;
    }
    
    .format-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .uuid-item {
        font-size: 13px;
        word-break: break-all;
    }
}