/* ============================================
   CSS VARIABLES - LIGHT MODE (DEFAULT)
   ============================================ */
:root {
    --transition-speed: 0.25s;
    
    /* Primary Colors - Android Green */
    --primary: #3DDC84;
    --primary-light: rgba(61, 220, 132, 0.15);
    --primary-dark: #2BB865;
    --accent: #4285F4;
    --accent-light: rgba(66, 133, 244, 0.15);
    
    /* Status Colors */
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger: #EF4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --info: #3B82F6;
    --info-light: rgba(59, 130, 246, 0.15);
    --purple: #8B5CF6;
    --purple-light: rgba(139, 92, 246, 0.15);
    
    /* Background Colors */
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    
    /* Text Colors */
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ============================================
   DARK MODE COLORS
   ============================================ */
[data-theme="dark"] {
    --primary: #3DDC84;
    --primary-light: rgba(61, 220, 132, 0.2);
    --primary-dark: #5AE89C;
    --accent: #60a5fa;
    --accent-light: rgba(96, 165, 250, 0.2);
    
    /* Status Colors */
    --success: #4ade80;
    --success-light: rgba(74, 222, 128, 0.2);
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.2);
    --danger: #f87171;
    --danger-light: rgba(248, 113, 113, 0.2);
    --info: #60a5fa;
    --info-light: rgba(96, 165, 250, 0.2);
    --purple: #a78bfa;
    --purple-light: rgba(167, 139, 250, 0.2);
    
    /* Background Colors */
    --bg: #0f172a;
    --bg-elevated: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    
    /* Text Colors */
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Border Colors */
    --border: #334155;
    --border-light: #475569;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.container {
    max-width: 1000px !important;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    transition: color var(--transition-speed);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TOOL HEADER
   ============================================ */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.tool-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    transition: background-color var(--transition-speed);
}

.tool-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.tool-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0;
    color: var(--primary);
}

.tool-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.section-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* ============================================
   ICON TYPE SELECTOR
   ============================================ */
.icon-type-selector {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background-color var(--transition-speed);
}

.icon-type-selector h3 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

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

.type-option {
    padding: 1.25rem 1rem;
    background-color: var(--bg-elevated);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--border);
}

.type-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.type-option.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.type-icon {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.type-icon svg {
    width: 32px;
    height: 32px;
}

.type-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

/* ============================================
   ICON GENERATOR SECTIONS
   ============================================ */
.icon-generator {
    display: none;
    animation: fadeIn 0.3s ease;
}

.icon-generator.active {
    display: block;
}

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

/* ============================================
   UPLOAD AREAS
   ============================================ */
.upload-area {
    border: 2px dashed var(--border);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.upload-area.active {
    border-color: var(--success);
    background-color: var(--success-light);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-icon svg {
    width: 48px;
    height: 48px;
}

.upload-area h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.browse-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0.75rem 0;
    transition: all 0.2s ease;
}

.browse-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.upload-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.upload-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.upload-tip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--info-light);
    color: var(--info);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

input[type="file"].file {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* ============================================
   OPTIONS PANEL
   ============================================ */
.options-panel {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background-color var(--transition-speed);
}

.options-panel h3 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

/* Density Options */
.density-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.density-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--bg-elevated);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.density-option:hover {
    border-color: var(--primary);
}

.density-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.density-option input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--primary);
    border-color: var(--primary);
}

.density-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.density-info {
    display: flex;
    flex-direction: column;
}

.density-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.density-size {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.density-option.featured {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

/* ============================================
   COLOR PICKER
   ============================================ */
.color-picker {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.color-option {
    text-align: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.color-option:hover {
    background-color: var(--bg-tertiary);
}

.color-option.active {
    background-color: var(--primary-light);
}

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    transition: border-color 0.2s ease;
}

.color-option.active .color-swatch {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.white-swatch {
    background-color: white;
}

.black-swatch {
    background-color: #1a1a1a;
}

.color-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.custom-color {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-color input[type="color"] {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 58px;
    height: 58px;
    border: none;
    cursor: pointer;
}

/* ============================================
   THEME OPTIONS
   ============================================ */
.theme-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.theme-option {
    text-align: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.theme-option:hover {
    background-color: var(--bg-tertiary);
}

.theme-option.active {
    background-color: var(--primary-light);
}

.theme-preview {
    width: 80px;
    height: 44px;
    border-radius: var(--radius-sm);
    margin: 0 auto 0.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    transition: border-color 0.2s ease;
}

.theme-option.active .theme-preview {
    border-color: var(--primary);
}

.light-theme {
    background-color: #f5f5f5;
}

.dark-theme {
    background-color: #333;
}

.both-theme {
    background: linear-gradient(90deg, #f5f5f5 50%, #333 50%);
}

.theme-sample {
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    border-radius: 4px;
}

.dark-theme .theme-sample {
    background-color: #f5f5f5;
}

.theme-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   ADAPTIVE ICON STYLES
   ============================================ */
.adaptive-layers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.layer-upload h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.adaptive-preview-container {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: background-color var(--transition-speed);
}

.adaptive-preview-container h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-previews {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.shape-preview {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 0.5rem;
}

.shape-preview .preview-bg,
.shape-preview .preview-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.shape-preview .preview-bg {
    background-color: var(--primary);
}

.shape-preview.circle {
    border-radius: 50%;
    overflow: hidden;
}

.shape-preview.squircle {
    border-radius: 30%;
    overflow: hidden;
}

.shape-preview.rounded {
    border-radius: 15%;
    overflow: hidden;
}

.shape-preview.square {
    border-radius: 0;
    overflow: hidden;
}

.shape-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-container {
    margin: 1.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0;
}

.progress-container p {
    text-align: center;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.primary-button,
.reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(61, 220, 132, 0.35);
}

.primary-button:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 220, 132, 0.45);
}

.primary-button:disabled {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.reset-button {
    background-color: var(--danger);
    color: white;
}

.reset-button:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

/* ============================================
   PREVIEW CONTAINER
   ============================================ */
#preview-container {
    background-color: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

#preview-container h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* Device Preview */
.device-preview {
    background-color: var(--bg-tertiary);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    width: 240px;
    height: 420px;
    position: relative;
    overflow: hidden;
}

.device-status-bar {
    height: 28px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    color: white;
    font-size: 12px;
    border-radius: 8px 8px 0 0;
}

.device-home-screen {
    height: calc(100% - 28px);
    background-color: #667eea;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 8px 8px;
}

.app-icon-preview {
    width: 64px;
    height: 64px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.app-icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   RESULTS CONTAINER
   ============================================ */
.result-container {
    background-color: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.result-container h3 {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.result-icon {
    color: var(--primary);
}

.result-icon svg {
    width: 24px;
    height: 24px;
}

.density-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.density-item {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.density-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.density-item-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.density-item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.density-item-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.density-item-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background-color: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-button:hover {
    background-color: #059669;
    transform: translateY(-2px);
    color: white;
}

.delete-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.delete-icon:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

.download-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--purple);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.download-all-button:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
    color: white;
}

/* ============================================
   RELATED TOOLS
   ============================================ */
.related-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    transition: background-color var(--transition-speed);
}

.related-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.related-label svg {
    color: var(--primary);
}

.related-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.related-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   INFO SECTIONS
   ============================================ */
.info-sections {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background-color: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.info-card h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    color: var(--text);
    margin: 0 0 1.5rem;
}

.info-card h2 svg {
    color: var(--primary);
}

/* Icon Types Grid */
.icon-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.icon-type-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.icon-type-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.icon-type-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.icon-type-symbol {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.icon-type-symbol svg {
    width: 22px;
    height: 22px;
}

.icon-type-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.icon-type-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.icon-type-card ul {
    padding-left: 1.25rem;
    margin: 0;
}

.icon-type-card li {
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

/* Implementation Guide */
.implementation-guide {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.25rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.code-block {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 0.75rem 0;
    overflow-x: auto;
}

.code-block code {
    display: block;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text);
    white-space: pre;
    line-height: 1.5;
}

/* Practices Grid */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.practice-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.practice-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.practice-icon svg {
    width: 22px;
    height: 22px;
}

.practice-details h4 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--text);
}

.practice-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.practice-details a {
    color: var(--primary);
}

/* Ad Container */
.ad-container {
    min-height: 100px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .tool-title-row {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .tool-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .type-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .adaptive-layers {
        grid-template-columns: 1fr;
    }
    
    .density-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step {
        flex-direction: column;
    }
    
    .related-tools {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-links {
        justify-content: flex-start;
    }
    
    .icon-types-grid,
    .practices-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .type-options {
        grid-template-columns: 1fr;
    }
    
    .density-options {
        grid-template-columns: 1fr;
    }
    
    .color-picker,
    .theme-options {
        justify-content: center;
    }
    
    .shape-previews {
        gap: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .primary-button,
    .reset-button {
        width: 100%;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
