/* UUID Generator - Professional Styles */
.uuid-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.uuid-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.uuid-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.uuid-icon {
    font-size: 2.8rem;
    display: inline-block;
    animation: spin 2s infinite;
}

@keyframes spin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.uuid-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.uuid-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Version Section */
.uuid-version-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.version-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.version-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem 1.3rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.version-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.version-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* Options Panel */
.uuid-options-panel {
    background: var(--bg);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.version-options {
    display: none;
}

.version-options.active {
    display: block;
}

.option-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-right: 1.5rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.85rem;
}

.option-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.custom-field {
    margin-top: 0.8rem;
}

.custom-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.custom-input {
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    width: 100%;
    max-width: 250px;
}

.bulk-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.bulk-input {
    width: 80px;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-align: center;
}

/* Action Buttons */
.uuid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.primary-action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.primary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.3);
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Result Area */
.uuid-result {
    margin-bottom: 1.5rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-label {
    font-weight: 600;
    color: var(--text);
}

.result-info {
    display: flex;
    gap: 0.5rem;
}

.info-badge {
    font-size: 0.75rem;
    background: var(--bg);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: var(--text-light);
}

.uuid-output {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    margin: 0;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--primary);
    font-weight: 500;
}

/* Stats */
.uuid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

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

/* Quick Actions */
.uuid-quick-actions {
    background: var(--bg);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.quick-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
    font-size: 0.85rem;
}

.quick-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.validator-panel, .comparator-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.validate-input, .compare-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: monospace;
}

.small-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
}

.validation-result, .compare-result {
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.validation-result.valid {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
}

.validation-result.invalid {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

/* History Section */
.uuid-history {
    background: var(--bg);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.uuid-history h3 {
    margin-bottom: 0.8rem;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    border-bottom: 1px solid var(--border);
    font-family: monospace;
    font-size: 0.8rem;
}

.history-item:hover {
    background: var(--surface);
}

.history-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--primary);
}

.history-empty {
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
}

.secondary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Info Grid */
.uuid-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--border);
}

.info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.info-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.info-card code {
    font-family: monospace;
    font-size: 0.7rem;
    background: var(--surface);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
}

/* Presets */
.uuid-presets {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.preset-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.8rem;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Tip */
.uuid-tip {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* SEO */
.uuid-seo {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: var(--surface);
    border-radius: 16px;
}

.feature-list {
    padding-left: 1.2rem;
    margin-top: 0.8rem;
}

.feature-list li {
    margin-bottom: 0.4rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Download Card */
.download-card-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.download-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    margin: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.dark-mode .download-card {
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
}

.download-card-bg-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.download-card-corner-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, transparent 100%);
    border-radius: 0 100px 0 0;
}

.download-card-header, .download-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.download-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
}

.download-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-card-body {
    position: relative;
    z-index: 1;
}

.download-calculator-type {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

.download-calculation {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--text);
}

.download-result-box {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.download-result-value {
    color: white;
    font-weight: bold;
    word-break: break-word;
}

.download-explanation {
    background: var(--bg);
    padding: 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin: 0.8rem 0;
}

.download-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.download-input-item {
    background: var(--bg);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
}

.download-input-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-light);
}

.download-input-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
}

.download-brand {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .uuid-container {
        padding: 0 1rem;
    }
    
    .uuid-title {
        font-size: 2rem;
    }
    
    .version-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .uuid-card {
        padding: 1.2rem;
    }
    
    .uuid-actions {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}