/* Button Styles - Professional Dark Mode Design */

/* Base Button Styles */
.widget-button-standard,
.widget-button-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Standard Button (Orange Primary) */
.widget-button-standard {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border: 1px solid var(--color-primary);
    box-shadow: var(--shadow-small);
}

.widget-button-standard:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    border: 1px solid var(--color-primary-dark);
    color: var(--color-text-on-primary);
}

.widget-button-standard:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-small);
}

.widget-button-standard:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.3);
}

/* Delete Button (Red Background) - laut ui-widget-buttons.mdc Regel 004 */
.widget-button-delete {
    background: var(--color-error);
    color: var(--color-text-on-primary);
    border: 1px solid var(--color-error);
    box-shadow: var(--shadow-small);
}

.widget-button-delete:hover {
    background: var(--color-error-dark);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    border: 1px solid var(--color-error-dark);
    color: var(--color-text-on-primary);
}

.widget-button-delete:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-small);
}

.widget-button-delete:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-error-rgb), 0.3);
}

/* Button Sizes */
.widget-button-small {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    min-height: 36px;
}

.widget-button-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
    min-height: 52px;
}

/* Button States */
.widget-button-standard:disabled,
.widget-button-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-small);
}

.widget-button-standard:disabled:hover,
.widget-button-delete:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-small);
}

/* Button Groups */
.widget-button-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.widget-button-group .widget-button-standard,
.widget-button-group .widget-button-delete {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .widget-button-standard,
    .widget-button-delete {
        padding: 0.75rem 1.25rem;
        font-size: var(--font-size-sm);
    }
    
    .widget-button-small {
        padding: 0.5rem 0.75rem;
        font-size: var(--font-size-xs);
    }
    
    .widget-button-large {
        padding: 1rem 1.5rem;
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .widget-button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .widget-button-group .widget-button-standard,
    .widget-button-group .widget-button-delete {
        width: 100%;
    }
}
