.icon.icon-size-xlarge {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px;
    min-height: 96px;
    max-width: 96px;
    max-height: 96px;
}
.icon-size-xlarge {
    width: 96px;
    height: 96px;
}
/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--color-white);
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--surface-hover);
    border-color: var(--text-tertiary);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--surface-hover);
    color: var(--text-primary);
}

.btn-danger {
    background-color: var(--error);
    color: var(--color-white);
    border: none;
}

.btn-danger:hover:not(:disabled) {
    background-color: color-mix(in srgb, var(--error) 85%, black);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-md);
}

.btn-full-width {
    width: 100%;
}

/* Icon Button */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.btn-sm {
    width: 24px;
    height: 24px;
}

.btn-icon.btn-lg {
    width: 40px;
    height: 40px;
}

/* Icon Component */
.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.icon-size-small {
    width: 16px;
    height: 16px;
}

.icon-size-medium {
    width: 20px;
    height: 20px;
}

.icon-size-large {
    width: 24px;
    height: 24px;
}

/* Tooltip Component */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    visibility: hidden;
    position: absolute;
    z-index: var(--z-index-tooltip);
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--text-primary);
    color: var(--background);
    font-size: var(--font-size-xs);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    border-width: 4px;
    border-style: solid;
}

.tooltip-top {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
}

.tooltip-top::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-color: var(--text-primary) transparent transparent transparent;
}

.tooltip-bottom {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
}

.tooltip-bottom::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-color: transparent transparent var(--text-primary) transparent;
}

.tooltip-left {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
}

.tooltip-left::after {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-color: transparent transparent transparent var(--text-primary);
}

.tooltip-right {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
}

.tooltip-right::after {
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-color: transparent var(--text-primary) transparent transparent;
}

.tooltip-visible {
    visibility: visible;
    opacity: 1;
}

/* Dropdown Component */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    z-index: var(--z-index-dropdown);
    min-width: 160px;
    padding: var(--space-xs) 0;
    margin: 4px 0 0;
    background-color: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    list-style: none;
    animation: dropdownAnimation var(--transition-fast);
}

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

.dropdown-align-left {
    left: 0;
}

.dropdown-align-right {
    right: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover:not(.disabled) {
    background-color: var(--surface-hover);
}

.dropdown-item.disabled {
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.dropdown-item-icon {
    margin-right: var(--space-sm);
    color: var(--text-secondary);
}

.dropdown-item-shortcut {
    margin-left: var(--space-md);
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
}

.dropdown-item-caret {
    margin-left: auto;
    color: var(--text-tertiary);
}

.dropdown-header {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.dropdown-separator {
    height: 1px;
    margin: var(--space-xs) 0;
    background-color: var(--border);
}

.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 160px;
    padding: var(--space-xs) 0;
    margin-left: 1px;
    background-color: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    list-style: none;
    animation: dropdownAnimation var(--transition-fast);
}

/* Modal Component */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-index-modal-backdrop);
    animation: fadeIn var(--transition-fast);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp var(--transition-normal);
    overflow: hidden;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-sm {
    max-width: 400px;
}

.modal-md {
    max-width: 600px;
}

.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1000px;
}

.modal-full {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.modal-title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-circle);
    background: transparent;
    color: var(--text-tertiary);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--surface-hover);
    color: var(--text-primary);
}

.modal-content {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    gap: var(--space-md);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-sm, .modal-md, .modal-lg, .modal-xl {
        max-width: 95vw;
    }
}