/* Icon Styles - Minimal, Casual, Clean */

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
    display: block;
    color: inherit;
}

/* Icon Sizes */
.icon-xs {
    width: 0.75rem;
    height: 0.75rem;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-xl {
    width: 2rem;
    height: 2rem;
}

/* Icon Colors */
.icon-primary {
    color: var(--primary-color);
}

.icon-secondary {
    color: var(--secondary-color);
}

.icon-success {
    color: var(--success-color);
}

.icon-white {
    color: var(--white);
}

.icon-gray {
    color: var(--gray-600);
}

/* Icon Usage Helpers */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-button:hover {
    background: var(--gray-100);
}

.icon-button:active {
    transform: scale(0.95);
}

.icon-button.icon-button-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.icon-button.icon-button-danger:hover {
    background: var(--danger-color);
    color: var(--white);
}

/* Dark mode styles for icon-button */
html.theme-dark .icon-button {
    color: var(--gray-700);
}

html.theme-dark .icon-button:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

html.theme-dark .icon-button svg {
    color: inherit;
}

html.theme-dark .theme-toggle {
    color: var(--gray-700);
}

html.theme-dark .theme-toggle:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

html.theme-dark .theme-toggle svg {
    color: inherit;
}

html.theme-dark .theme-icon-sun,
html.theme-dark .theme-icon-moon {
    color: var(--gray-700);
}